View on GitHub

Attribute-based-routes

Download this project as a .zip file Download this project as a tar.gz file

Attribute Based Routes List Package

To use this package, first create an ASP.Net MVC 5 project. And then install this package using the Manage NuGet Packages UI or from the Package Manager Console using the following command.

Install-Package AttributeBasedRoutesList

After this visit the url http://localhost:<port_no>/attribute-based-routes to look at a list of all the routes used by the project declared using the Route attribute (along w/ RoutePrefex, RouteArea attributes). The main intention is to save some time to look at all the defined routes in the application, rather than knowing them by visiting all the controllers in the application. Give below is a screenshot of how it looks!

Sample Screenshot

An important thing to note is that this page will show up with data only if the project is running on the localhost (Cassini or the IIS).

For information on ASP.NET MVC 5 attribute based routing visit http://blogs.msdn.com/b/webdev/archive/2013/10/17/attribute-routing-in-asp-net-mvc-5.aspx