Add view engine unit - handlebars - and response helpers
This commit is contained in:
11
app/http/controllers/Home.controller.ts
Normal file
11
app/http/controllers/Home.controller.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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'
|
||||
|
||||
export default class HomeController extends Controller {
|
||||
|
||||
get_home(request: Request) {
|
||||
return view('home', { request })
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user