PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/SLSTOffCampusWeb/App_Start/WebApiConfig.cs

https://bitbucket.org/jrobertshawe/off-campus-server
C# | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | d1a9c3b5db8e4d1c4346817bd1ec2fa7 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web.Http;
  5. namespace SLSTOffCampusWeb
  6. {
  7. public static class WebApiConfig
  8. {
  9. public static void Register(HttpConfiguration config)
  10. {
  11. config.Routes.MapHttpRoute(
  12. name: "DefaultApi",
  13. routeTemplate: "api/{controller}/{id}",
  14. defaults: new { id = RouteParameter.Optional }
  15. );
  16. }
  17. }
  18. }