diff options
Diffstat (limited to 'samples/OAuth2ProtectedWebApi/App_Start/RouteConfig.cs')
-rw-r--r-- | samples/OAuth2ProtectedWebApi/App_Start/RouteConfig.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/samples/OAuth2ProtectedWebApi/App_Start/RouteConfig.cs b/samples/OAuth2ProtectedWebApi/App_Start/RouteConfig.cs new file mode 100644 index 0000000..d64e426 --- /dev/null +++ b/samples/OAuth2ProtectedWebApi/App_Start/RouteConfig.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using System.Web.Routing; + +namespace OAuth2ProtectedWebApi { + public class RouteConfig { + public static void RegisterRoutes(RouteCollection routes) { + routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + + routes.MapRoute( + name: "Default", + url: "{controller}/{action}/{id}", + defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } + ); + } + } +}
\ No newline at end of file |