zeroframework/ApiGateways/ZeroFramework.ReverseProxy/Program.cs

6 lines
212 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddReverseProxy()
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"));
var app = builder.Build();
app.MapReverseProxy();
app.Run();