|
|
@ -15,6 +15,11 @@ class Home extends Controller {
|
|
|
|
* Serve the main welcome page.
|
|
|
|
* Serve the main welcome page.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
welcome(req, res) {
|
|
|
|
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.
|
|
|
|
* Return the welcome view.
|
|
|
|
* The page() method is added by Flitter and passes some
|
|
|
|
* The page() method is added by Flitter and passes some
|
|
|
|