using Ocelot.DependencyInjection; using Ocelot.Middleware; var builder = WebApplication.CreateBuilder(args); builder.Configuration.AddJsonFile("ocelot.json", true, true); // Add services to the container. builder.Services.AddOcelot(); var app = builder.Build(); // Configure the HTTP request pipeline. app.UseOcelot().Wait(); app.Run();