diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 13:24:51 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 13:24:51 +0200 |
commit | 318110acae21063c0afb9f3ab67edf6dceba615f (patch) | |
tree | 56b8a13e8cef8b6b4f51f200fd58dd44a1fc2672 | |
parent | added a few comments (diff) | |
download | Divid-318110acae21063c0afb9f3ab67edf6dceba615f.tar.gz |
fixing routes
-rw-r--r-- | controllers/system.js | 2 | ||||
-rw-r--r-- | router.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/controllers/system.js b/controllers/system.js index cf205b9..f04ec6d 100644 --- a/controllers/system.js +++ b/controllers/system.js @@ -65,7 +65,7 @@ exports.project = function(req, res) { res.render('project', { title: 'Harepus', loggedin: true }); } -exports.newproject = function(req, res) { +exports.newProject = function(req, res) { res.render('newproject', { title: 'Nytt prosjekt', loggedin: true }); } @@ -55,6 +55,7 @@ module.exports = function(app, passport, auth) { app.get('/project', auth.requiresLogin, system.project); - app.get('/project/new', auth.requiresLogin, system.newproject); + app.get('/project/new', auth.requiresLogin, system.newProject); + app.post('/project/new', auth.requiresLogin, system.postNewProject) }; |