title: How can I integrate regex into my MapHttpRoute for WebApi
body: <p>I currently have:</p>
  
  <pre><code>config.Routes.MapHttpRoute(
                  name: "AccountApiCtrl",
                  routeTemplate: "/api" + "/account/{action}/{id}",
                  defaults: new { controller = "accountapi", id = RouteParameter.Optional }
              );
  </code></pre>
  
  <p>Which sends <strong>/api/account/myaction requests to accountapi controller</strong>. (it works great :-))</p>
  
  <p>However, I'd rather not do this for each controller I have, is there a way I can use regex here so that I only have on declaration?</p>
  
  <p>I.E so:</p>
  
  <p><strong>/api/account/action goes to controller: AccountApi
  and
  /api/user/action goes to controller: UserApi</strong></p>
  
  <p>i.e something along the lines of:</p>
  
  <pre><code>config.Routes.MapHttpRoute(
                  name: "ControllerApiMap",
                  routeTemplate: "/api" + "/{controller}/{action}/{id}",
                  defaults: new { controller = "{controller}+api", id = RouteParameter.Optional }
              );
  </code></pre>