ily.li/src/controllers/AboutController.ts

12 lines
322 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 {
this.get('/about', this.getAbout, 'about');
}
private async getAbout(req: Request, res: Response) {
res.render('about');
}
}