ily.li/src/controllers/AboutController.ts
2020-11-22 14:13:57 +01:00

14 lines
367 B
TypeScript

import Controller from "swaf/Controller";
import {Request, Response} from "express";
export default class AboutController extends Controller {
public routes(): void {
this.get('/', this.getAbout, 'home');
this.get('/', this.getAbout, 'about');
}
private async getAbout(req: Request, res: Response) {
res.render('about');
}
}