Optional
options: ControllerDecoratorOptionsOptional configuration for the controller.
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.
Optional
middlewares?: MIDDLEWARE[]Optional list of middleware to be executed for the controller.
Optional
prefix?: stringOptional route prefix that will be applied to all endpoints of the controller.
Returns a class decorator that applies the controller configuration.
Decorator function for defining a controller in a web application. It assigns metadata such as prefix, default middleware, and routes to a class.