Get all registered routes in ASP.NET Core

前端 未结 8 1383
独厮守ぢ
独厮守ぢ 2020-12-02 12:07

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

8条回答
  •  情书的邮戳
    2020-12-02 13:05

    Using Swashbuckle did the trick for me.

    You just need to use AttributeRouting on controllers you want to list (and on their actions)

提交回复
热议问题