File: Program.cs
Web Access
Project: src\playground\TestShop\ApiGateway\ApiGateway.csproj (ApiGateway)
var builder = WebApplication.CreateBuilder(args);
 
builder.AddServiceDefaults();
builder.Services.AddReverseProxy()
                .LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"))
                .AddServiceDiscoveryDestinationResolver();
 
var app = builder.Build();
 
app.MapReverseProxy();
 
app.Run();