2020-11-22 13:49:08 +01:00
|
|
|
import Controller from "swaf/Controller";
|
2020-04-23 18:07:55 +02:00
|
|
|
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');
|
|
|
|
}
|
2020-11-22 13:49:08 +01:00
|
|
|
}
|