Open adrianlee opened 9 years ago
app.use(function(req, res) { if (req.isAuthenticated()) { var data = req.user; return res.sendFile(dirname + "/public/home.html"); } res.sendFile(dirname + "/public/welcome.html"); });
app.use(function(req, res) { if (req.isAuthenticated()) { var data = req.user; return res.sendFile(dirname + "/public/home.html"); } res.sendFile(dirname + "/public/welcome.html"); });