コード例 #1
0
 /// <summary>
 /// The GlobalConfig.Config(config) call is for standardizing base configuration in Web API
 /// </summary>
 /// <param name="appBuilder"></param>
 public void Configuration(IAppBuilder appBuilder)
 {
     var config = new HttpConfiguration();
     GlobalConfig.Config(config);
     appBuilder.UseItuDevelopersApi(config);
     appBuilder.UseWebApi(config);
 }
コード例 #2
0
 public void Configuration(IAppBuilder app)
 {
     var config = new HttpConfiguration();
     var corsAttribute = new EnableCorsAttribute("http://localhost:3001", "*", "*");
     config.EnableCors(corsAttribute);
     GlobalConfig.Config(config);
     app.UseItuDevelopersApi(config);
     app.UseWebApi(config);
 }