2020-08-07 14:51:25 +00:00
|
|
|
import Controller from '../../../lib/src/http/Controller.ts'
|
|
|
|
import {Request} from '../../../lib/src/http/Request.ts'
|
|
|
|
import {view} from '../../../lib/src/http/response/helpers.ts'
|
2020-09-04 14:40:16 +00:00
|
|
|
import {Injectable} from '../../../di/module.ts'
|
2020-08-07 14:51:25 +00:00
|
|
|
|
2020-09-04 14:40:16 +00:00
|
|
|
@Injectable()
|
2020-08-07 14:51:25 +00:00
|
|
|
export default class HomeController extends Controller {
|
|
|
|
|
2020-09-04 14:40:16 +00:00
|
|
|
async get_home(request: Request) {
|
|
|
|
return view('home', { greeting: 'Hello' })
|
2020-08-07 14:51:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|