Sisk

Method

Router.GetRouteFromPath

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

GetRouteFromPath(RouteMethod, string) #

Gets the first matched Route by their HTTP method and path.

C#
public Route? GetRouteFromPath(RouteMethod method, string uri)

Parameters #

method RouteMethod

The HTTP method to match.

uri string

The URL expression.

Returns #

Route?

GetRouteFromPath(string) #

Gets the first matched Route by their URL path.

C#
public Route? GetRouteFromPath(string uri)

Parameters #

uri string

The URL expression.

Returns #

Route?

Type to search the documentation and the API reference.