WebApiConfig.cs 405 B

1234567891011121314151617
  1. using System.Web.Http;
  2. namespace LeaRun.Application.Web
  3. {
  4. public static class WebApiConfig
  5. {
  6. public static void Register(HttpConfiguration config)
  7. {
  8. config.Routes.MapHttpRoute(
  9. name: "DefaultApi",
  10. routeTemplate: "api/{controller}/{id}",
  11. defaults: new { id = RouteParameter.Optional }
  12. );
  13. }
  14. }
  15. }