• Controller Decorator Factory

    Register the decorated class as a Controller that will register all route methods with Express auto-magically.

    Returns

    • a class decorator

    Parameters

    • Optional baseUrl: string

      base url for the route. Defaults to '/'

    • middlewares: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[] = []

      list of middelwares to apply to all routes

    • Optional options: AccessorOptions

      options for the controller

    Returns ClassDecorator

Generated using TypeDoc