ARTICLE AD BOX
I want to split the ocelot.json file into several for easier use.
{ "Routes": [], "GlobalConfiguration": { "BaseUrl": "http://192.168.0.224:7150" }, "FileReRoutes": [ { "File": "ocelot/ocelot.app1.json" }, { "File": "ocelot/ocelot.app2.json" } ] }In the program.cs file I include the configuration file:
builder.Configuration .SetBasePath(builder.Environment.ContentRootPath) .AddJsonFile("ocelot.json", optional: false, reloadOnChange: true);It can't find a logical path. I asked the AI, and it said there shouldn't be an error. But I suspect.
Please tell me, is this normal to do? Or am I wrong?
