This commit is contained in:
Daniel Saewitz
2013-02-21 14:18:53 -05:00
parent b92145f5a3
commit ddff29ccf0
11 changed files with 234 additions and 72 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
module.exports.splash = (req, res, next) ->
# This was an API call, not a page load
return next() if req.is('json')
return next() if /^\/api/.test req.path
if !req.session.userId? and !req.query?.play?
res.redirect('/splash.html')
else