diff --git a/src/controllers/HomeController.ts b/src/controllers/HomeController.ts index 847c759..ad035b4 100644 --- a/src/controllers/HomeController.ts +++ b/src/controllers/HomeController.ts @@ -5,6 +5,7 @@ export default class HomeController extends Controller { routes(): void { this.get('/', this.getHome, 'home'); this.get('/about', this.getAbout, 'about'); + this.get('/back', this.goBack, 'about'); } private async getHome(req: Request, res: Response) { @@ -14,4 +15,11 @@ export default class HomeController extends Controller { private async getAbout(req: Request, res: Response) { res.render('about'); } + + /** + * This is to test and assert that wms-core extended types are available + */ + private async goBack(req: Request, res: Response) { + res.redirectBack(); + } } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 803227e..18f1bee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ ] }, "include": [ - "src/**/*" + "src/**/*", + "node_modules/wms-core/types" ] } \ No newline at end of file