- Preparing search index...
- The search index is not available
Documentation
- Controller(baseUrl?: string, middlewares?: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[], options?: AccessorOptions): ClassDecorator
-
Parameters
-
Optional baseUrl: string
-
middlewares: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[] = []
-
Optional options: AccessorOptions
Returns ClassDecorator
Controller Decorator Factory
Register the decorated class as a Controller that will register all route methods with Express auto-magically.
Returns