@Controller()
The @Controller()
decorator can be used on a class to create a Controller class.
@Controller(options?: object)
The decorator takes an optional object as an argument. The properties of this object can be seen below.
Options Properties
baseRoute: string
This is used to specify a parent route.
@Controller({
baseRoute: '/api/v1'
})