zeroframework/ApiGateways/ZeroFramework.ReverseProxy/Program.cs
2023-12-05 17:22:48 +08:00

6 lines
212 B
C#

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddReverseProxy()
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"));
var app = builder.Build();
app.MapReverseProxy();
app.Run();