We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 570e053 commit bd42c65Copy full SHA for bd42c65
asp-net-core-server/Startup.cs
@@ -57,7 +57,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
57
app.UseCors("CorsPolicy");
58
app.UseEndpoints(endpoints => {
59
// Maps the dashboard route.
60
- EndpointRouteBuilderExtension.MapDashboardRoute(endpoints, "api/dashboard", "DefaultDashboard");
+ endpoints.MapDashboardRoute("api/dashboard", "DefaultDashboard");
61
// Requires CORS policies.
62
endpoints.MapControllers().RequireCors("CorsPolicy");
63
});
0 commit comments