Last active
November 23, 2016 19:54
-
-
Save casper-rasmussen/e9e2e462386bd1ef5ade490d667946c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) | |
{ | |
// Convention-based routing. | |
config.Routes.MapHttpRoute( | |
name: "ControllersApi", | |
routeTemplate: "{language}/api/{controller}/{action}", | |
defaults: new { } | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment