14 lines
367 B
TypeScript
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');
|
|
}
|
|
}
|