From a6e2071885e020422f988f28bfb28daf9ab765dd Mon Sep 17 00:00:00 2001 From: Daniel Habenicht Date: Wed, 13 Aug 2025 20:11:24 +0200 Subject: [PATCH] Healthcheck --- Watcher/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Watcher/Program.cs b/Watcher/Program.cs index 4356947..577b2f9 100644 --- a/Watcher/Program.cs +++ b/Watcher/Program.cs @@ -31,6 +31,7 @@ builder.Host.UseSerilog(); // Add services to the container. builder.Services.AddControllersWithViews(); +builder.Services.AddHealthChecks(); // HttpContentAccessor @@ -213,4 +214,6 @@ app.MapControllerRoute( pattern: "{controller=Auth}/{action=Login}/" ); +app.MapHealthChecks("/healthz"); + app.Run();