From c8fc8281a9de3b9b0fe18ba8407fcc07e8f95678 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 29 Jan 2013 14:53:02 -0500 Subject: blank view on root path --- routes/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'routes/index.js') 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){ -- cgit v1.2.3-70-g09d2