Description

Contains a collection of routes. Provides an interface for adding/removing routes and parsing/generating URLs with the routes it contains. @internal

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
Json[string]Json[string] parseRequest(IServerRequest serverRequest)
string[]string[] _getNames(Json[string] url)
boolbool hasMiddlewareGroup(string groupName)
Route[]Route[] routes()
string[]string[] getExtensions()
voidvoid setExtensions(Json[string] extensions, bool shouldMerge = true)
stringstring match(Json[string] url, Json[string] context)
voidvoid middlewareGroup(string groupName, Json[string] middlewareNames)
Json[string]Json[string] getMiddleware(string[] middlewareNames)
voidvoid add(DRoute route, Json[string] options = null)
IRoute[]IRoute[] named()
stringstring matchRoute(Route routeToCheck, Json[string] url, Json[string] context)
voidvoid registerMiddleware(string routingName, /* IRoutingMiddleware | Closure | */ string mymiddleware)
boolbool hasMiddleware(string middlewareName)
boolbool middlewarehasKey(string middlewareName)