summaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2013-01-29 14:53:02 -0500
committerJules Laplace <jules@okfoc.us>2013-01-29 14:53:02 -0500
commitc8fc8281a9de3b9b0fe18ba8407fcc07e8f95678 (patch)
treeeaa38aace81cfc9a8bb07cdc98eea9f368d7b9b0 /routes
parentfe811e9f9cb929c60a5eea9979baa1be10b91aab (diff)
blank view on root path
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/index.js b/routes/index.js
index b8a9461..dcf9dc1 100644
--- a/routes/index.js
+++ b/routes/index.js
@@ -4,7 +4,11 @@
*/
exports.index = function(req, res){
- res.render('index', { title: 'Wait Site', currentUser: req.user });
+ if (req.user) {
+ res.render('index', { title: 'Wait Site', currentUser: req.user });
+ } else {
+ res.render('blank', {});
+ }
};
exports.hover = function(req, res){