Not sure what is your purpose for having multiple healthcheck endpoints.
If it is to support different "liveness" and "readiness" healthchecks, then the correct approach is indicated by Microsoft documentation "Filter Health Checks".
In essence, it relies on adding tags to your health checks and then using those tags to route to the appropriate controller. You don't need to specify a healthcheck with "live" tag as you get the basic Http test out of the box.
In Startup.ConfigureServices()
services.AddHealthChecks()
.AddCheck("SQLReady", () => HealthCheckResult.Degraded("SQL is degraded!"), tags: new[] { "ready" })
.AddCheck("CacheReady", () => HealthCheckResult.Healthy("Cache is healthy!"), tags: new[] { "ready" });
In Startup.Configure()
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapHealthChecks("/health/ready", new HealthCheckOptions()
{
Predicate = (check) => check.Tags.Contains("ready"),});
endpoints.MapHealthChecks("/health/live", new HealthCheckOptions()
{
Predicate = (_) => false});
});