Constructors
constructor
-
Parameters
-
controllers: any
-
-
Default value options: RouterOptions = { path: {} }
Properties
logger
logger: LoggerInstance
Methods
bindMethod
- bindMethod(method: any, routes: any): boolean
-
Parameters
Returns boolean
decoratedRoutes
- decoratedRoutes(controllers: any): object
-
Parameters
Returns object
-
delete: object
-
get: object
-
post: object
-
put: object
prepareControllerMethods
- prepareControllerMethods(method: string, ctrl: BaseController): object
-
Parameters
Returns object
register
- register(app?: express.Application): any
-
Parameters
-
Optional app: express.Application
Returns any
registerController
- registerController(routes: any, r: any): any
Static build
-
Parameters
-
controllers: any | string
-
routes: RouteMap | string
-
Returns any
Binds all routes registered in the method supplied