diff --git a/Program.cs b/Program.cs index bca9cde..1755149 100644 --- a/Program.cs +++ b/Program.cs @@ -33,7 +33,10 @@ builder.Services.AddOptions() .Validate(o => !string.IsNullOrWhiteSpace(o.ConnectionString), "DB connection string required") .ValidateOnStart(); -// (Optional) health checks / metrics can be added here too. +builder.Services.AddHealthChecks() + .AddCheck("mysql", tags: new[] { "ready" }) + //.AddCheck("redis", tags: new[] { "ready" }) + ; // ---- Build the app AFTER all service registrations ---- var app = builder.Build();