title: how to have a single controller and action handle all routes in asp.net core?
body: <p>I have these paths:</p>
  
  <pre><code> /r/dog 
   /r/dog/one 
   /r/dog/one/two 
   /r/dog/one/two/three
  </code></pre>
  
  <p>The path could go on like this pattern forever.</p>
  
  <p>I want just one controller and one action to handle all these requests. How do I configure an ASP.NET Core route to handle this requirement?</p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/3169074/omit-controller-name-from-url-mvc">these</a> instructions but they didn't work.</p>
  
  <p>Tried this:</p>
  
  <pre><code>routes.MapRoute("r", "/r/{action}", new {controller = "Dashboard", action="Index" });
  </code></pre>