From 08e7a82cc7b237e550c0236bebd4f41c3c3f4acf Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Fri, 16 Mar 2018 21:40:28 +0100 Subject: Moved API to separate folder. --- pollutometer-api/PollutometerWebApi/Global.asax.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pollutometer-api/PollutometerWebApi/Global.asax.cs (limited to 'pollutometer-api/PollutometerWebApi/Global.asax.cs') diff --git a/pollutometer-api/PollutometerWebApi/Global.asax.cs b/pollutometer-api/PollutometerWebApi/Global.asax.cs new file mode 100644 index 0000000..3a03cf6 --- /dev/null +++ b/pollutometer-api/PollutometerWebApi/Global.asax.cs @@ -0,0 +1,17 @@ +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; +using System.Web.Http; + +namespace PollutometerWebApi +{ + public class Global : HttpApplication + { + protected void Application_Start() + { + AreaRegistration.RegisterAllAreas(); + GlobalConfiguration.Configure(WebApiConfig.Register); + RouteConfig.RegisterRoutes(RouteTable.Routes); + } + } +} -- cgit v1.2.3