I am new to .NET Core. I want to get a list of all registered routes in ASP.NET Core. In ASP.NET MVC we had route table in System.Web.Routing, is there somethin
You are trying to get a router of type RouteCollection. To get all routes of that type you should be able to call .All() on routers of type RouteCollection.
Example:
var routes = RouteData.Routers.OfType
Credit to: https://rimdev.io/get-registered-routes-from-an-asp.net-mvc-core-application/
Refer to above article if .All() doesn't work.