mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 09:38:14 +08:00
#296 will now do a crappy merge on the configuration
This commit is contained in:
@ -45,6 +45,7 @@ namespace Ocelot.DependencyInjection
|
||||
}
|
||||
|
||||
var lines = File.ReadAllText(file);
|
||||
|
||||
var config = JsonConvert.DeserializeObject<FileConfiguration>(lines);
|
||||
|
||||
if(file == "./ocelot.global.json")
|
||||
@ -57,8 +58,11 @@ namespace Ocelot.DependencyInjection
|
||||
}
|
||||
|
||||
var json = JsonConvert.SerializeObject(ocelotConfig);
|
||||
|
||||
File.WriteAllText("ocelot.json", json);
|
||||
|
||||
builder.AddJsonFile("ocelot.json");
|
||||
|
||||
return builder;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user