From b2f37bdcb03d93a80254f58694f8047d3c35b9bb Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 26 Mar 2013 11:25:57 +0100 Subject: changed the way the app handles routes. now everything goes straight to router.js, insted of being partially handled in app.js --- routes/index.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 routes/index.js (limited to 'routes/index.js') diff --git a/routes/index.js b/routes/index.js deleted file mode 100644 index 9e1f66e..0000000 --- a/routes/index.js +++ /dev/null @@ -1,22 +0,0 @@ - -/* - * GET home page. - * - * '/' - */ - -exports.index = function(req, res){ - // res.render(TEMPLATE, OBJECT WITH VARIABLES) - res.render('index', { title: 'DERS' }); -}; - - -/* - * GET login page - * - * '/login' - */ - -exports.login = function(req, res) { - res.render('login', { title: 'Logg inn' }); -} -- cgit v1.2.3