title: Default route for root path using asp.net attribute routing
body: <p>I'm using attribute routing from ASP.NET 5 RC, included in the Visual Studio 2013 RC release.</p>
  
  <p>I'd like for the root path, <code>/</code>, to lead to the canonical <code>/Home/Index</code> path, but I can't find a way to do this with just attribute routes. Is it possible, and if not, how would I do it if I'm also using OWIN SelfHost? In other words, I'm setting up my own <code>HttpConfiguration</code> class manually in the <code>WebApp.Start&lt;T&gt;</code> method (where <code>T</code> has a <code>Configure(IAppBuilder)</code> method invoked at startup) and not going through the <code>RouteTable.Routes</code> object. Or should I be going through the <code>RouteTable.Routes</code> object? I haven't had much luck with that when I tried it...</p>
  
  <p>EDIT: Here's what I've tried so far:</p>
  
  <pre><code>// normal Web API attribute routes
  config.MapHttpAttributeRoutes();
  
  config.Routes.MapHttpRoute(
     name: "DefaultWeb",
     routeTemplate: "{controller}/{action}",
     defaults: new { controller = "Home", action = "Index" }
  );
  </code></pre>
  
  <p>The second try below looks a little dubious, since it's not clear how my <code>HttpConfiguration</code> object is related to the static <code>RouteTable.Routes</code> object:</p>
  
  <pre><code>// normal Web API attribute routes
  config.MapHttpAttributeRoutes();
  
  RouteTable.Routes.MapRoute(
     name: "DefaultWeb",
     url: "{controller}/{action}",
     defaults: new { controller = "Home", action = "Index" }
  );
  </code></pre>