using StellaOps.Gateway.WebService; var builder = WebApplication.CreateBuilder(args); // Register gateway routing services builder.Services.AddGatewayRouting(builder.Configuration); var app = builder.Build(); // Health check endpoint (not routed through gateway middleware) app.MapGet("/health", () => Results.Ok(new { status = "healthy" })); // Gateway router middleware pipeline // All other requests are routed through the gateway app.UseGatewayRouter(); app.Run(); // Make Program class accessible for integration tests public partial class Program { }