From b14f18ed84f9dba290f34951294930b9f54eb4a4 Mon Sep 17 00:00:00 2001 From: bcgov-hl <86084492+bcgov-hl@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:23:00 -0700 Subject: [PATCH] Update Health check (cherry picked from commit 9c0c7e9680226a4e34e8ec2c0be367159eca0164) --- OFM.Infrastructure.WebAPI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OFM.Infrastructure.WebAPI/Program.cs b/OFM.Infrastructure.WebAPI/Program.cs index ff80aeb3..f6c6a82c 100644 --- a/OFM.Infrastructure.WebAPI/Program.cs +++ b/OFM.Infrastructure.WebAPI/Program.cs @@ -76,7 +76,7 @@ { return TypedResults.Ok("I am healthy!"); -}).WithTags("Environment").Produces(200).ProducesProblem(404); +}).WithTags("Environment").Produces(200).ProducesProblem(404).AllowAnonymous(); app.MapHealthChecks("/api/health");