Method Add
Add(string)
Adds a route with no path parameters from the specified string.
Declaration
public RouteGroupBuilder<TParam> Add(string route)
Parameters
| Type | Name | Description |
|---|---|---|
| string | route |
Returns
| Type | Description |
|---|---|
| RouteGroupBuilder<TParam> |
Add(Func<TParam, InterpolatedRouteHandler>, string)
Adds a parameterized route from the specified route function that returns the interpolated route.
Declaration
public RouteGroupBuilder<TParam> Add(Func<TParam, InterpolatedRouteHandler> routeFunc, string routeFuncExpr = "")
Parameters
| Type | Name | Description |
|---|---|---|
| Func<TParam, InterpolatedRouteHandler> | routeFunc | |
| string | routeFuncExpr |
Returns
| Type | Description |
|---|---|
| RouteGroupBuilder<TParam> |