aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/routes.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-27 13:23:56 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-27 13:23:56 +0200
commita367363d725795c5f0fe83ef3417db2bd3bd3915 (patch)
tree2ea4a1f53c05b6f2030140eb2755fa0e6d4eec21 /config/routes.js
parentfixed small bug (diff)
downloadDivid-a367363d725795c5f0fe83ef3417db2bd3bd3915.tar.gz
cleaned up some and added a bunch of comments
Diffstat (limited to '')
-rw-r--r--config/routes.js4
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);