From 5e386927ecee813a4895ca53dbed4ce48806e32f Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 19 Mar 2013 07:09:21 -0400 Subject: added route to login-page --- routes/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'routes') 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' }); +} -- cgit v1.2.3