Skip to content

Commit

Permalink
Add health check support
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWise committed Jul 4, 2023
1 parent 566c2e6 commit 321a060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DkpWeb/Startup.cs
Expand Up @@ -65,10 +65,13 @@ public void ConfigureServices(IServiceCollection services)
ConnectionString = Configuration["APPINSIGHTS_CONNECTIONSTRING"],
});

services.AddHealthChecks();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseHealthChecks("/healthz");

if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
Expand Down

0 comments on commit 321a060

Please sign in to comment.