Health endpoint
Build and Push Docker Images / build (push) Failing after 0s

This commit is contained in:
2026-05-07 19:37:06 +03:00
parent f608bec742
commit 166280943c
5 changed files with 128 additions and 13 deletions
-11
View File
@@ -215,15 +215,4 @@ public static class StartupExtensions
options.RoutePrefix = "swagger";
});
}
public static void MapHealthEndpoint(this WebApplication app, string serviceName, string appVersion)
{
app.MapGet("/health", () => Results.Ok(new
{
status = "ok",
service = serviceName,
version = appVersion,
timeUtc = DateTimeOffset.UtcNow
}));
}
}