Listing all routes in ASP.NET Core application
It is pretty simple to list all routes configured in your ASP.NET Core application: Add Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider parameter to your Startup.Configure method. If you have not done so already also add the ILogger<Startup> parameter to Startup.Configure as well Loop through all action descriptor items in the IActionDescriptorCollectionProvider and display the log information Here is an example… Read More »