Sisk

Method

Route.Any

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

Any(string, Delegate?) #

Creates a route that responds to any HTTP request method.

C#
public static Route Any(string path, Delegate? action)

Parameters #

path string

The URL path for the route.

action Delegate?

The action to be executed when the route is matched.

Returns #

Route

A Route object configured for any request method.

Any(string, RouteAction) #

Creates a route that responds to any HTTP request method.

C#
public static Route Any(string path, RouteAction action)

Parameters #

path string

The URL path for the route.

action RouteAction

The action to be executed when the route is matched.

Returns #

Route

A Route object configured for any request method.

Type to search the documentation and the API reference.