aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/routes/index.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-03-19 07:09:21 -0400
committerDennis Eriksen <dennis.se@gmail.com>2013-03-19 07:09:21 -0400
commit5e386927ecee813a4895ca53dbed4ce48806e32f (patch)
tree168a9aeec3724c9a78c8dfca94738e2a3f3c7ab5 /routes/index.js
parentadded twitter bootstrap files (diff)
downloadDivid-5e386927ecee813a4895ca53dbed4ce48806e32f.tar.gz
added route to login-page
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/routes/index.js b/routes/index.js
index 93a632e..8681a0e 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -9,3 +9,14 @@ exports.index = function(req, res){
// res.render(TEMPLATE, OBJECT WITH VARIABLES)
res.render('index', { title: 'Express' });
};
+
+
+/*
+ * GET login page
+ *
+ * '/login'
+ */
+
+exports.login = function(req, res) {
+ res.render('login', {title: 'Logg inn' });
+}