public profile accessible and start updating form

This commit is contained in:
Michael Q Larson
2015-01-05 16:38:56 -08:00
parent ba037abe53
commit db9622a2e5
6 changed files with 224 additions and 50 deletions

4
app.js
View File

@ -243,6 +243,10 @@ app.get(
'/challenges/:challengeNumber',
challengesController.returnChallenge
);
app.get(
'/users/:username',
userController.returnUser
);
app.all('/account', passportConf.isAuthenticated);
app.get('/account', userController.getAccount);
app.post('/account/profile', userController.postUpdateProfile);