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();