From a367363d725795c5f0fe83ef3417db2bd3bd3915 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 27 May 2013 13:23:56 +0200 Subject: cleaned up some and added a bunch of comments --- config/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/routes.js') 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); -- cgit v1.2.3