Route
Holds methods to handle routes and controllers.
#
Usage#
useapp.route.use(...middleware: ((req,res,next)=>void | typeof Middleware)[]): this
#
add a global middleware to app more
#
errorapp.route.use(...middleware: ((err,req,res,next)=>void | typeof Middleware)[]): this
#
add a global error middleware to app more
#
hooksapp.route.hooks: Hooks
#
get request hooks more
#
getRoutegetRoute(path: string, method: string): Route<IController>
#
get route by a path and method
#
addRouteapp.route.addRoute(route: Route<IController>)
#
add new route
#
addRouteFromClassapp.route.addRouteFromClass(fn: Function)
#
add new route from a class