|
|
@ -22,7 +22,7 @@ namespace OcelotApiGw |
|
|
|
{ |
|
|
|
IWebHostBuilder builder = WebHost.CreateDefaultBuilder(args); |
|
|
|
builder.ConfigureServices(s => s.AddSingleton(builder)) |
|
|
|
.ConfigureAppConfiguration(ic => ic.AddJsonFile(Path.Combine("appsettings.json"))) |
|
|
|
.ConfigureAppConfiguration(ic => ic.AddJsonFile("appsettings.json")) |
|
|
|
.UseStartup<Startup>(); |
|
|
|
IWebHost host = builder.Build(); |
|
|
|
return host; |
|
|
|