Represents options for configuring a controller decorator.

This interface provides support for defining configurations such as route prefix and middleware functions to be applied to the controller.

interface ControllerDecoratorOptions {
    middlewares?: MIDDLEWARE[];
    prefix?: string;
}

Properties

middlewares?: MIDDLEWARE[]

Optional list of middleware to be executed for the controller.

prefix?: string

Optional route prefix that will be applied to all endpoints of the controller.