You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
597 B
25 lines
597 B
/*
|
|
* Home Controller
|
|
* -------------------------------------------------------------
|
|
* Controller for the main homepage of this Flitter app. Methods here
|
|
* are used as handlers for routes specified in the route files.
|
|
*/
|
|
class Home {
|
|
|
|
/*
|
|
* Serve the main welcome page.
|
|
*/
|
|
welcome(req, res){
|
|
|
|
/*
|
|
* Return the welcome view.
|
|
* It must be passed the response.
|
|
* View parameters can be passed as an optional third
|
|
* argument to the view() method.
|
|
*/
|
|
return _flitter.view(res, 'welcome')
|
|
}
|
|
}
|
|
|
|
module.exports = Home
|