You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var conventionalRouteEndpoints = endpointDataSource.Endpoints.Where(e => e.DisplayName.StartsWith("Route:"));
It is filtering out the majority of my routes when defined using app.UseEndpoints() which do not have a display name beginning with Route, rather they begin with my project's namespace:
The result is that I see only two routes out of the dozens in my application.
For reference my routes are declared thusly in Program.cs:
// Configure the router
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapControllerRoute(name: "areas", pattern: "api/{area:exists}/{controller=Reception}/{action=Index}/{id?}");
endpoints.MapControllerRoute(name: "default", pattern: "api/{controller=Home}/{action=Index}/{id?}");
endpoints.MapRhbIdentityApi<User>();
// Pass the conventional routes to the generator
ConventionalRoutingSwaggerGen.UseRoutes(endpoints);
})
The text was updated successfully, but these errors were encountered:
I see this line in UseRoutes:
var conventionalRouteEndpoints = endpointDataSource.Endpoints.Where(e => e.DisplayName.StartsWith("Route:"));
It is filtering out the majority of my routes when defined using
app.UseEndpoints()
which do not have a display name beginning with Route, rather they begin with my project's namespace:The result is that I see only two routes out of the dozens in my application.
For reference my routes are declared thusly in Program.cs:
The text was updated successfully, but these errors were encountered: