Redirect logged in users away from landing page to app
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

master
Garrett Mills 4 years ago
parent c3d3ac84a4
commit 2d3171cfc9
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -15,6 +15,11 @@ class Home extends Controller {
* Serve the main welcome page.
*/
welcome(req, res) {
if (req.user) {
// If we have a user, redirect them to the main app
return res.redirect('/i')
}
/*
* Return the welcome view.
* The page() method is added by Flitter and passes some

Loading…
Cancel
Save