Type aliases
DefaultMiddlewares
DefaultMiddlewares: "true" | "false"
EndpointCallback
EndpointCallback: (req: Request, res: Response) => void
Type declaration
- (req: Request, res: Response): void
Parameters
req: Request
res: Response
Returns void
HTTPMethods
HTTPMethods: "get" | "post" | "put" | "delete" | "patch"
MiddleWareCallback
MiddleWareCallback: (req: Request, res: Response, next: NextFunction) => void
Type declaration
- (req: Request, res: Response, next: NextFunction): void
Parameters
req: Request
res: Response
next: NextFunction
Returns void
ParameterCallback
ParameterCallback: (req: Request, res: Response, next: NextFunction, value: number | string) => void
Type declaration
- (req: Request, res: Response, next: NextFunction, value: number | string): void
Parameters
req: Request
res: Response
next: NextFunction
value: number | string
Returns void
Whether to apply default middlewares or not type