aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2025-04-26 16:29:45 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2025-04-26 16:29:45 +0300
commit8b5609e0e125cabdef9035ba96211b9bea3e15d9 (patch)
treee552719e4d290d12bb6ae68a1bbe270a87bb397a
parent5439fcfb75920974055247801adae3ceddfcb9b3 (diff)
Add health checks endpoint to API
-rw-r--r--RhSolutions.SkuParser.Api/Program.cs2
1 files changed, 2 insertions, 0 deletions
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<ISkuParser, CommonExcelParser>("application/vnd.ms-excel.sheet.macroenabled.12")
.AddKeyedScoped<ISkuParser, BsExcelParser>("BS");
builder.Services.AddControllers();
+builder.Services.AddHealthChecks();
var app = builder.Build();
app.MapControllers();
+app.MapHealthChecks("/healthy");
app.Run(); \ No newline at end of file