Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active December 11, 2015 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/6e39ca05f1a0a6b62cdc to your computer and use it in GitHub Desktop.
Save bjoerntx/6e39ca05f1a0a6b62cdc to your computer and use it in GitHub Desktop.
using System.Web.Http;
public class WebApiConfig
{
public static void Register(HttpConfiguration configuration)
{
configuration.Routes.MapHttpRoute("API Default", "api/{controller}/{id}",
new { id = RouteParameter.Optional });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment