Healthcheck

This commit is contained in:
2025-08-13 20:11:24 +02:00
parent b9bfd433d1
commit a6e2071885

View File

@@ -31,6 +31,7 @@ builder.Host.UseSerilog();
// Add services to the container. // Add services to the container.
builder.Services.AddControllersWithViews(); builder.Services.AddControllersWithViews();
builder.Services.AddHealthChecks();
// HttpContentAccessor // HttpContentAccessor
@@ -213,4 +214,6 @@ app.MapControllerRoute(
pattern: "{controller=Auth}/{action=Login}/" pattern: "{controller=Auth}/{action=Login}/"
); );
app.MapHealthChecks("/healthz");
app.Run(); app.Run();