Files
register-referentie/services/bff/Bff.Api/Program.cs
Edwin van den Houdt b680b0f466 feat(bff): add /health endpoint (refs #28)
Register ASP.NET Core health checks and map GET /health. The endpoint
returns 200 with a "Healthy" body by default, making the red test pass.
Smallest change to go green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 13:35:54 +02:00

13 lines
311 B
C#

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddHealthChecks();
var app = builder.Build();
app.MapGet("/", () => "BFF placeholder");
app.MapHealthChecks("/health");
app.Run();
// Exposed so the test host (WebApplicationFactory<Program>) can boot the app.
public partial class Program;