maybe fix the redirect issue

This commit is contained in:
Michael Q Larson
2014-11-19 15:50:57 -08:00
parent ee587b8d54
commit 0f3132a3f0
2 changed files with 11 additions and 11 deletions

19
app.js
View File

@@ -142,6 +142,15 @@ app.get('/nonprofits', contactController.getContact);
app.post('/nonprofits', contactController.postContact);
// # Protected routes, user must be logged in.
app.post(
'/update-progress',
passportConf.isAuthenticated,
userController.updateProgress);
app.get(
'/challenges/:challengeNumber',
passportConf.isAuthenticated,
challengesController.returnChallenge);
app.all('/account', passportConf.isAuthenticated);
app.get('/account', userController.getAccount);
app.post('/account/profile', userController.postUpdateProfile);
@@ -149,16 +158,6 @@ app.post('/account/password', userController.postUpdatePassword);
app.post('/account/delete', userController.postDeleteAccount);
app.get('/account/unlink/:provider', userController.getOauthUnlink);
app.post(
'/update-progress',
passportConf.isAuthenticated,
userController.updateProgress);
app.get(
'/challenges/:challengeNumber',
passportConf.isAuthenticated,
challengesController.returnChallenge);
/**
* API examples routes.
*/