Redirect logged in users away from landing page to app
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-05 20:32:11 -05:00
parent c3d3ac84a4
commit 2d3171cfc9
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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