Constructors
constructor
-
Parameters
-
controllers: any
-
routes: any
-
Properties
app
app: any
logger
logger: LoggerInstance
options
routes
routes: any
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
init
-
Returns void
prepareControllerMethods
- prepareControllerMethods(method: any, ctrl: any): object
-
Parameters
Returns object
register
- register(app?: express.Application): any
-
Parameters
-
Optional app: express.Application
Returns any
registerController
- registerController(routes: any, r: any): any
-
Parameters
Returns any
Static build
-
Parameters
-
controllers: any | string
-
routes: any | string
-
Returns any
Binds all routes registered in the method supplied