aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-30 13:43:10 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-30 13:43:10 +0200
commitc0c20e4d6672223014d8caa9e31ed5bb966762c1 (patch)
tree2fb21a3828efed955ac432b86c2e5df3145f3e94 /routes.js
parentremoved old router (diff)
downloadDivid-c0c20e4d6672223014d8caa9e31ed5bb966762c1.tar.gz
added routes for projects and the participantpage
Diffstat (limited to 'routes.js')
-rw-r--r--routes.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes.js b/routes.js
index ae94779..0b6bd65 100644
--- a/routes.js
+++ b/routes.js
@@ -57,5 +57,9 @@ module.exports = function(app, passport, auth) {
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);
};