Sisk

Constructor

PrefixRoute constructor

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

PrefixRoute(RouteMethod, string, string?, RouteAction, IRequestHandler[]?) #

Initializes a new instance of the PrefixRoute class.

C#
public PrefixRoute(RouteMethod method, string prefix, string? name, RouteAction action, IRequestHandler[]? beforeCallback)

Parameters #

method RouteMethod

The HTTP method for this route.

prefix string

The path prefix for this route.

name string?

The name of this route.

action RouteAction

The action to be executed when this route is matched.

beforeCallback IRequestHandler[]?

The callback to be executed before the action.

Type to search the documentation and the API reference.