Skip to content

Commit 10396f3

Browse files
committed
Add health check endpoint for Azure Always On monitoring
1 parent 6eeb4f1 commit 10396f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/FitSpec.API/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
}
9090

9191
app.UseCors("Angular");
92+
app.MapGet("/health", () => Results.Ok(new { status = "healthy", timestamp = DateTime.UtcNow }));
9293
app.MapControllers();
9394
app.MapHub<FitSpec.API.Hubs.InventoryHub>("/hubs/inventory");
9495

0 commit comments

Comments
 (0)