Properties
app
app: express.Application
Methods
addAnyRoute
- addAnyRoute(handler: (event: WebEvent) => void): void
addConnectMiddleware
- addConnectMiddleware(path: string, middleware: any): void
-
Parameters
-
path: string
-
middleware: any
Returns void
addRoute
- addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): void
-
Parameters
-
method: string
-
path: string
-
handler: (event: WebEvent) => void
-
Optional middleware: any
Returns void
listen
-
Parameters
Returns Promise<Server>
sendJsonBody
- sendJsonBody(routeEvent: WebEvent, body: any): void