RouteBuilderExtension.MapDashboardRoute(IRouteBuilder, String) Method
Maps the specified URL route and sets a prefix.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v18.2.AspNetCore.dll
Declaration
public static void MapDashboardRoute(
this IRouteBuilder routeBuilder,
string routePrefix
)
Parameters
Name | Type | Description |
---|---|---|
routeBuilder | IRouteBuilder | The IRouteBuilder collection to add the route to. |
routePrefix | String | A String value that specifies the route prefix. |
Remarks
A route prefix is used to handle requests from the client-side DashboardControl. Use the following properties on the client:
- HTML JS: DashboardControlOptions.endpoint
- ASP.NET Core: DashboardBackendOptionsBuilder.Uri
- ASP.NET MVC: DashboardBackendOptions.Uri
See Also