Table of Contents

Method GetRouteFromPath

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

GetRouteFromPath(RouteMethod, string)

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

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.

public Route? GetRouteFromPath(string uri)

Parameters

uri string

The URL expression.

Returns

Route