Skip to content

Commit

Permalink
Fix healthcheck endpoints 1.0.74 (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashendrickx authored May 6, 2024
1 parent 9657e87 commit fed72b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Api/HealthChecks/HealthCheckBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ public static void AddPasswordlessHealthChecks(this WebApplicationBuilder builde
public static void MapPasswordlessHealthChecks(this WebApplication app)
{
var group = app.MapGroup(HealthCheckEndpoints.Path);
group.MapHealthChecks("/health/http", new HealthCheckOptions
group.MapHealthChecks("/http", new HealthCheckOptions
{
Predicate = registration => registration.Tags.Contains(TagSimple)
});
group.MapHealthChecks("/health/storage", new HealthCheckOptions
group.MapHealthChecks("/storage", new HealthCheckOptions
{
ResponseWriter = HealthCheckResponseWriter.WriteResponseAsync,
Predicate = registration => registration.Tags.Contains(TagDatabase)
});
group.MapHealthChecks("/health/version", new HealthCheckOptions
group.MapHealthChecks("/version", new HealthCheckOptions
{
ResponseWriter = HealthCheckResponseWriter.WriteResponseAsync,
Predicate = registration => registration.Tags.Contains(TagVersion)
});
group.MapHealthChecks("/health/mail", new HealthCheckOptions
group.MapHealthChecks("/mail", new HealthCheckOptions
{
ResponseWriter = HealthCheckResponseWriter.WriteResponseAsync,
Predicate = registration => registration.Tags.Contains(TagMail)
Expand Down

0 comments on commit fed72b2

Please sign in to comment.