Contains a collection of routes. Provides an interface for adding/removing routes and parsing/generating URLs with the routes it contains. @internal
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
Json[string] | Json[string] parseRequest(IServerRequest serverRequest) | ||||
string[] | string[] _getNames(Json[string] url) | ||||
bool | bool hasMiddlewareGroup(string groupName) | ||||
Route[] | Route[] routes() | ||||
string[] | string[] getExtensions() | ||||
void | void setExtensions(Json[string] extensions, bool shouldMerge = true) | ||||
string | string match(Json[string] url, Json[string] context) | ||||
void | void middlewareGroup(string groupName, Json[string] middlewareNames) | ||||
Json[string] | Json[string] getMiddleware(string[] middlewareNames) | ||||
void | void add(DRoute route, Json[string] options = null) | ||||
IRoute[] | IRoute[] named() | ||||
string | string matchRoute(Route routeToCheck, Json[string] url, Json[string] context) | ||||
void | void registerMiddleware(string routingName, /* IRoutingMiddleware | Closure | */ string mymiddleware) | ||||
bool | bool hasMiddleware(string middlewareName) | ||||
bool | bool middlewarehasKey(string middlewareName) |