aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-02-12 16:44:17 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-02-12 16:44:17 +0200
commit18477c8dc7e7971f2cfb08d0e11ca483944f79f2 (patch)
tree22a7c735184c5df6a84d2182d3ff9b2222cc53b5 /Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs
parent48ceaabee98371376e606361f396a61c479ce031 (diff)
downloadTango-18477c8dc7e7971f2cfb08d0e11ca483944f79f2.tar.gz
Tango-18477c8dc7e7971f2cfb08d0e11ca483944f79f2.zip
Added project Tango.MachineService.Gateway
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs
new file mode 100644
index 000000000..ca49db782
--- /dev/null
+++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/App_Start/WebApiConfig.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web.Http;
+
+namespace Tango.MachineService.Gateway
+{
+ public static class WebApiConfig
+ {
+ public static void Register(HttpConfiguration config)
+ {
+ // Web API configuration and services
+
+ // Web API routes
+ config.MapHttpAttributeRoutes();
+
+ config.Routes.MapHttpRoute(
+ name: "DefaultApi",
+ routeTemplate: "api/{controller}/{id}",
+ defaults: new { id = RouteParameter.Optional }
+ );
+ }
+ }
+}