ily.li/src/controllers/AboutController.ts

13 lines
363 B
TypeScript
Raw Normal View History

2020-04-23 18:07:55 +02:00
import Controller from "wms-core/Controller";
import {Request, Response} from "express";
2020-06-14 13:01:52 +02:00
export default class AboutController extends Controller {
2020-04-23 18:07:55 +02:00
routes(): void {
2020-06-14 15:15:15 +02:00
this.get('/', this.getAbout, 'home');
this.get('/', this.getAbout, 'about');
2020-04-23 18:07:55 +02:00
}
private async getAbout(req: Request, res: Response) {
res.render('about');
}
}