summaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/index.js')
-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){