Optional
auth
auth?: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>, any>[]
Optional
bodyParser
bodyParser?: {
json?: OptionsJson;
urlencoded?: OptionsUrlencoded;
}
Optional
cookieParser
cookieParser?: {
options?: CookieParseOptions;
secret?: string | string[];
}
Optional
cors
cors?: boolean | CorsOptions | CorsOptionsDelegate<CorsRequest>
Optional
middlewares
middlewares?: RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]
Optional
validatorOnError
validatorOnError?: ErrorRequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>, any>
Optional
validators
validators?: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>, any>[]
Error request handler for the default validator if no validitor was set in constructor