aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pollutometer-api/PollutometerWebApi/Global.asax.cs')
-rw-r--r--pollutometer-api/PollutometerWebApi/Global.asax.cs17
1 files changed, 17 insertions, 0 deletions
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);
+ }
+ }
+}