Created
June 11, 2017 08:36
-
-
Save sespinosa/96218b126650d839e220c00231027c8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myController = { | |
root: function(req, res) { | |
if(req.session().algo) { | |
res.view('index', { | |
foo: 'bar' | |
}); | |
} | |
else { | |
res.view('login') | |
} | |
} | |
}; | |
module.exports = myController; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment