restyle portfolio and make all portfolio paths off of root and hide angular form until loaded

This commit is contained in:
Michael Q Larson
2015-01-11 22:19:56 -08:00
parent da3ed43b2f
commit fc00ef3f29
5 changed files with 139 additions and 97 deletions

12
app.js
View File

@ -252,10 +252,6 @@ app.get(
'/challenges/:challengeNumber',
challengesController.returnChallenge
);
app.get(
'/campers/:username',
userController.returnUser
);
app.all('/account', passportConf.isAuthenticated);
app.get('/account/api', userController.getAccountAngular);
// Unique Check API route
@ -267,6 +263,14 @@ app.post('/account/password', userController.postUpdatePassword);
app.post('/account/delete', userController.postDeleteAccount);
app.get('/account/unlink/:provider', userController.getOauthUnlink);
//put this route last
app.get(
'/:username',
userController.returnUser
);
/**
* API examples routes.
* accepts a post request. the challenge id req.body.challengeNumber