Esempio n. 1
0
        public void Configuration(IAppBuilder appBuilder)
        {
            HttpConfiguration httpConfiguration = new HttpConfiguration();

            WebApi.Configure(httpConfiguration);
            Swagger.Configure(httpConfiguration);

            appBuilder.UseWebApi(httpConfiguration);
        }
Esempio n. 2
0
        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);
        }