Class Router
Hierarchy
- Router
Constructors
Properties
Methods
Constructors
Properties
Methods
-
Add a route dynamicaly
Parameters
-
url: string
of the route can contains dynamic part like {uuid}
-
info: RouteInfo
the type of executor
Returns void
-
-
Parameters
-
a: any
-
b: any
Returns number
-
-
Add all known routes to paths
Parameters
-
openapi: Document
to complete
-
Default value skipHidden: boolean = true
add hidden routes or not
Returns void
-
-
Get the route from a method / url
Parameters
-
ctx: Context
-
method: HttpMethodType
-
url: string
Returns any
-
-
Get all method for a specific url
Parameters
-
url: any
Returns HttpMethodType[]
-
-
Returns void
-
Remove a route dynamicly
Parameters
-
url: any
to remove
Returns void
-
Generated using TypeDoc
Manage Route resolution