aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--routes.js (renamed from router.js)10
1 files changed, 8 insertions, 2 deletions
diff --git a/router.js b/routes.js
index b67f03a..d597ae8 100644
--- a/router.js
+++ b/routes.js
@@ -50,12 +50,18 @@ module.exports = function(app, passport, auth) {
*/
- app.get('/dashboard', system.dashboard);
+ app.get('/dashboard', auth.requiresLogin, system.dashboard);
app.get('/project', auth.requiresLogin, system.project);
app.get('/project/new', auth.requiresLogin, system.newProject);
- app.post('/project/new', auth.requiresLogin, system.postNewProject)
+ app.post('/project/new', auth.requiresLogin, system.postNewProject);
+
+ app.get('/project/:short', auth.requiresLogin, system.project);
+
+ app.get('/project/:short/participants', auth.requiresLogin, system.projectParticipants);
+
+ app.post('/project/:short/participants', auth.requiresLogin, system.postProjectParticipants);
};