diff --git a/Dfe.PrepareTransfers.Web/Startup.cs b/Dfe.PrepareTransfers.Web/Startup.cs index 466c9b7fe..c7d72b020 100644 --- a/Dfe.PrepareTransfers.Web/Startup.cs +++ b/Dfe.PrepareTransfers.Web/Startup.cs @@ -90,6 +90,7 @@ public void ConfigureServices(IServiceCollection services) services.Configure(options => { options.LowercaseUrls = true; }); services.Configure(GetConfigurationSection()); + services.AddHealthChecks(); AddServices(services, Configuration); AuthorizationPolicyBuilder policyBuilder = SetupAuthorizationPolicyBuilder(); @@ -167,6 +168,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseStaticFiles(); + app.UseHealthChecks("/health"); + app.UseRouting(); app.UseSentryTracing();