Exports Router and routerInstance
- Version:
-
- 3.0.0
- Since:
-
- 1.0.0
- Source:
Classes
Members
-
<static, constant> routerInstance :Router
-
Persistent instance of Router.
Type:
- Router
Methods
-
<static> matchBestPath(_path, routes)
-
Evaluates and returns the best matching route for the given path
Parameters:
Name Type Description _path
String routes
Array Returns:
- Type
- Object
-
<static> module.exports(router)
-
Adds the match route before middleware logic
Parameters:
Name Type Description router
Object Returns:
- Type
- function
-
<static> redirectMiddleware(router)
-
Detect if a redirect has occured and rests the middleware to the beginning of beforeEach.
Parameters:
Name Type Description router
Router Returns:
- Type
- function