Constructor
PrefixRoute constructor
PrefixRoute(RouteMethod, string, string?, RouteAction, IRequestHandler[]?) #
Initializes a new instance of the PrefixRoute class.
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.