dashboard-devexpress-dot-dashboardaspnetcore-2ae56ec8.md
Provides extension methods to configure routing for the Web Dashboard.
Namespace : DevExpress.DashboardAspNetCore
Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll
NuGet Package : DevExpress.AspNetCore.Dashboard
public static class RouteBuilderExtension
Public Module RouteBuilderExtension
Routing functionality is responsible for mapping an incoming request to a route handler. ASP.NET Core applications support two routing types: the endpoint routing and routing at the MVC level. The endpoint routing is set as a default routing. The Web Dashboard can use both routing types.
The code sample below shows how to set a default dashboard route handler for endpoint routing. The route prefix is api/dashboard and the controller name is DefaultDashboard:
// Maps the dashboard route.
app.MapDashboardRoute("api/dashboard", "DefaultDashboard");
A route prefix is used to handle requests from the client-side DashboardControl. Use the following properties in the client applications to specify the endpoint:
Object RouteBuilderExtension
See Also