Refactoring and code cleanup

This commit is contained in:
Sahat Yalkabov
2013-12-15 14:02:41 -05:00
parent ac0a77d0ff
commit 273bd0afcc
4 changed files with 17 additions and 22 deletions

4
app.js
View File

@ -55,8 +55,8 @@ app.get('/signup', user.getSignup);
app.post('/signup', user.postSignup);
app.get('/account', passportConf.isAuthenticated, user.getAccount);
app.post('/account/profile', passportConf.isAuthenticated, user.postAccountProfile);
app.post('/account/settings', passportConf.isAuthenticated, user.postAccountSettings);
app.post('/account/profile', passportConf.isAuthenticated, user.postAccountProfileTab);
app.post('/account/settings', passportConf.isAuthenticated, user.postAccountSettingsTab);
app.post('/account/delete', passportConf.isAuthenticated, user.postDeleteAccount);
app.get('/account/unlink/:provider', passportConf.isAuthenticated, user.getOauthUnlink);