aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/controllers/system.js
blob: e54fc1cfb42e630997d409f7f1ae7d0476d6ea89 (plain) (tree)





























































                                                                    

/**
 * 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 });
}