Skip to content

Commit

Permalink
feat(auth-service): add health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
codingben committed May 7, 2023
1 parent af31304 commit 303f4da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/auth-service/Authenticator.API/AuthenticatorStartup.cs
Expand Up @@ -14,6 +14,8 @@ public class AuthenticatorStartup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks();

var databaseUrl = Environment.GetEnvironmentVariable("DATABASE_URL");
if (databaseUrl != null)
{
Expand Down Expand Up @@ -42,6 +44,7 @@ public void ConfigureServices(IServiceCollection services)
applicationBuilder.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapHealthChecks("/healthz");
});
}
}
Expand Down

0 comments on commit 303f4da

Please sign in to comment.