Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Startup
- {
- public void Configuration(IAppBuilder app)
- {
- var webApiConfiguration = ConfigureWebApi();
- // Use the extension method provided by the WebApi.Owin library:
- app.UseWebApi(webApiConfiguration);
- }
- private HttpConfiguration ConfigureWebApi()
- {
- var config = new HttpConfiguration();
- config.Routes.MapHttpRoute(
- "DefaultApi",
- "api/{controller}/{id}",
- new { id = RouteParameter.Optional });
- return config;
- }
- }
Add Comment
Please, Sign In to add comment