From 5d15cf2ba995251815a31737185cb701f61c4f23 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Mon, 29 Apr 2013 09:19:07 +0200 Subject: added faq to controllers --- controllers/system.js | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/controllers/system.js b/controllers/system.js index e54fc1c..e798f17 100644 --- a/controllers/system.js +++ b/controllers/system.js @@ -13,28 +13,33 @@ */ exports.index = function(req, res) { - res.render('index', { title: 'DERS' }); + res.render('index', { title: 'DERS' }); }; exports.test = function(req, res) { - res.render('test', { - title: 'test', - loggedin: false - }); - }; + res.render('test', { + title: 'test', + loggedin: false + }); +}; exports.home = function(req, res) { - res.render('home', { - title: 'home', - loggedin: false - }); - }; - - - + res.render('home', { + title: 'home', + loggedin: false + }); +}; + + +exports.faq = function(req, res) { + res.render('faq', { + title: 'faq', + loggedin: false + }); +} @@ -47,16 +52,16 @@ exports.home = function(req, res) { exports.dashboard = function(req, res) { - console.log('/dashboard - ' + req.user); - res.render('dashboard', { - title: 'kanin', - loggedin: true - }); - }; + console.log('/dashboard - ' + req.user); + res.render('dashboard', { + title: 'kanin', + loggedin: true + }); +}; exports.project = function(req, res) { - res.render('project', { title: 'Harepus', loggedin: true }); + res.render('project', { title: 'Harepus', loggedin: true }); } -- cgit v1.2.3