From 8b5609e0e125cabdef9035ba96211b9bea3e15d9 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Sat, 26 Apr 2025 16:29:45 +0300 Subject: Add health checks endpoint to API --- RhSolutions.SkuParser.Api/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RhSolutions.SkuParser.Api/Program.cs b/RhSolutions.SkuParser.Api/Program.cs index 731344a..9909765 100644 --- a/RhSolutions.SkuParser.Api/Program.cs +++ b/RhSolutions.SkuParser.Api/Program.cs @@ -11,7 +11,9 @@ builder.Services .AddKeyedScoped("application/vnd.ms-excel.sheet.macroenabled.12") .AddKeyedScoped("BS"); builder.Services.AddControllers(); +builder.Services.AddHealthChecks(); var app = builder.Build(); app.MapControllers(); +app.MapHealthChecks("/healthy"); app.Run(); \ No newline at end of file -- cgit v1.2.3