RouteBuilderExtension.MapDashboardRoute(IRouteBuilder, String) Method
Maps the specified URL route and sets a prefix.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v19.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 a route prefix. |
Remarks
A route prefix is used to handle requests from the client-side DashboardControl. Use the following properties in the client application:
- HTML JavaScript: DashboardControlOptions.endpoint
- ASP.NET Core: DashboardBackendOptionsBuilder.Uri
- ASP.NET MVC: DashboardBackendOptions.Uri
See Also