daton/app/http/controllers/Home.controller.ts

14 lines
402 B
TypeScript

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'
import {Injectable} from '../../../di/module.ts'
@Injectable()
export default class HomeController extends Controller {
async get_home(request: Request) {
return view('home', { greeting: 'Hello' })
}
}