feat: Ocelot-Konfigurationsdatei für die Entwicklung hinzugefügt.
This commit is contained in:
@@ -4,7 +4,8 @@ using Ocelot.Middleware;
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Make sure to add the Ocelot configuration file
|
||||
builder.Configuration.AddJsonFile("ocelot.json");
|
||||
var suffix = builder.Environment.IsDevelopment() ? ".Development" : "";
|
||||
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
|
||||
|
||||
// Add Ocelot services
|
||||
builder.Services.AddOcelot();
|
||||
|
||||
Reference in New Issue
Block a user