Method
Router.Map
Map(Route) #
Maps a route into this router.
public void Map(Route route)Parameters #
route Route
The route to map.
Map(IEnumerable<Route>) #
Maps a collection of routes into this router.
public void Map(IEnumerable<Route> routes)Parameters #
routes IEnumerable<Route>
The routes to map.
Map(RouteMethod, string, Delegate?) #
Maps a route using the specified method, path and action.
public void Map(RouteMethod method, string path, Delegate? action)Parameters #
method RouteMethod
The route method to match.
path string
The route path.
action Delegate?
The route action.
Map(RouteMethod, string, Delegate?, IRequestHandler[]?) #
Maps a route using the specified method, path, action and request handlers.
public void Map(RouteMethod method, string path, Delegate? action, IRequestHandler[]? requestHandlers = null)Parameters #
method RouteMethod
The route method to match.
path string
The route path.
action Delegate?
The route action.
requestHandlers IRequestHandler[]?
Handlers that run before or after the route action.