diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-27 13:23:56 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-27 13:23:56 +0200 |
commit | a367363d725795c5f0fe83ef3417db2bd3bd3915 (patch) | |
tree | 2ea4a1f53c05b6f2030140eb2755fa0e6d4eec21 /config/routes.js | |
parent | fixed small bug (diff) | |
download | Divid-a367363d725795c5f0fe83ef3417db2bd3bd3915.tar.gz |
cleaned up some and added a bunch of comments
Diffstat (limited to 'config/routes.js')
-rw-r--r-- | config/routes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.js b/config/routes.js index 8ba83a9..8f5865a 100644 --- a/config/routes.js +++ b/config/routes.js @@ -32,7 +32,7 @@ module.exports = function(app, passport, auth) { app.get('/auth/twitter', passport.authenticate('twitter', { failureRedirect: '/' }), users.signin); app.get('/auth/twitter/callback', passport.authenticate('twitter', { failureRedirect: '/' }), users.authCallback); - app.get('/invite/:randomToken', users.claimInvite); + app.get('/invite/:randomToken', users.claimInvite); // :randomToken can be retrieved in 'req.params.randomToken' app.post('/invite/:randomToken', users.postClaimInvite); @@ -40,12 +40,12 @@ module.exports = function(app, passport, auth) { app.get('/login/:hash', passport.authenticate('hash', { failureRedirect: '/'}), users.randomLogin); + /** * REQUIRES LOGIN * ============================================================ */ - app.get('/dashboard', auth.requiresLogin, system.dashboard); app.get('/registerEmail', auth.requiresLogin, users.registerEmail); |