1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 08:35:17 +00:00

Handle errors

This commit is contained in:
2019-11-23 13:24:24 +01:00
parent 293752b0f4
commit 1ddf156cc4
3 changed files with 26 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export enum RouteType {
export interface Route {
type ?: RouteType,
path: string,
cb: (req : RequestHandler) => void,
cb: (req : RequestHandler) => Promise<void> | void,
}
export const Routes : Route[] = [