public void Configuration(IAppBuilder appBuilder) { HttpConfiguration httpConfiguration = new HttpConfiguration(); WebApi.Configure(httpConfiguration); Swagger.Configure(httpConfiguration); appBuilder.UseWebApi(httpConfiguration); }
public void Configuration(IAppBuilder app) { var config = new HttpConfiguration(); OAuth.Configure(app); WebApi.Configure(config); app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll); app.UseWebApi(config); }