diff options
Diffstat (limited to 'TwoStepsAuthenticator.TestWebsite/App_Start/WebApiConfig.cs')
-rw-r--r-- | TwoStepsAuthenticator.TestWebsite/App_Start/WebApiConfig.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/TwoStepsAuthenticator.TestWebsite/App_Start/WebApiConfig.cs b/TwoStepsAuthenticator.TestWebsite/App_Start/WebApiConfig.cs new file mode 100644 index 0000000..1ff1be7 --- /dev/null +++ b/TwoStepsAuthenticator.TestWebsite/App_Start/WebApiConfig.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web.Http; + +namespace TwoStepsAuthenticator.TestWebsite +{ + public static class WebApiConfig + { + public static void Register(HttpConfiguration config) + { + config.Routes.MapHttpRoute( + name: "DefaultApi", + routeTemplate: "api/{controller}/{id}", + defaults: new { id = RouteParameter.Optional } + ); + } + } +} |