diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 04:13:18 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-29 04:13:18 +0200 |
commit | c1371f712789e97fac6351daee93a048b12db69b (patch) | |
tree | 0ffe7b97319018e75138646d5798039ab75f3b64 /controllers/system.js | |
parent | been cleaning a bit, moving stuff to where it belongs. signup and (diff) | |
download | Divid-c1371f712789e97fac6351daee93a048b12db69b.tar.gz |
cleaned up router.js
Diffstat (limited to 'controllers/system.js')
-rw-r--r-- | controllers/system.js | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/controllers/system.js b/controllers/system.js new file mode 100644 index 0000000..e54fc1c --- /dev/null +++ b/controllers/system.js @@ -0,0 +1,62 @@ + +/** + * Module dependencies + */ + + + + + +/** + * Before the user log in + * =============================================================== +*/ + +exports.index = function(req, res) { + res.render('index', { title: 'DERS' }); + }; + + + +exports.test = function(req, res) { + res.render('test', { + title: 'test', + loggedin: false + }); + }; + + +exports.home = function(req, res) { + res.render('home', { + title: 'home', + loggedin: false + }); + }; + + + + + + + +/** + * After the user has logged in + * =============================================================== +*/ + + + +exports.dashboard = function(req, res) { + console.log('/dashboard - ' + req.user); + res.render('dashboard', { + title: 'kanin', + loggedin: true + }); + }; + + + +exports.project = function(req, res) { + res.render('project', { title: 'Harepus', loggedin: true }); +} + |