diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/index.js | 6 |
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){ |
