Skip to content

Instantly share code, notes, and snippets.

@rsoeteman
Created May 7, 2019 13:33
Show Gist options
  • Save rsoeteman/ef6d61d88ef094a7d5d9e6ebf701e545 to your computer and use it in GitHub Desktop.
Save rsoeteman/ef6d61d88ef094a7d5d9e6ebf701e545 to your computer and use it in GitHub Desktop.
List all routes
@foreach (var route in RouteTable.Routes.OfType<Route>())
{
var r = (Route)route;
<div>@r.Url</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment