tsconfig.json: restore wms-core/types include and add test
This commit is contained in:
parent
bce48f81b6
commit
5157b12b77
@ -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();
|
||||
}
|
||||
}
|
@ -13,6 +13,7 @@
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
"src/**/*",
|
||||
"node_modules/wms-core/types"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user