diff --git a/Startup.cs b/Startup.cs index bd73746..0e5a26c 100644 --- a/Startup.cs +++ b/Startup.cs @@ -26,6 +26,7 @@ namespace pwt_0x01_ng // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { + services.AddHealthChecks(); services.Configure(options => { // This lambda determines whether user consent for non-essential cookies is needed for a given request. @@ -121,6 +122,7 @@ namespace pwt_0x01_ng name: "default", pattern: "{controller=Products}/{action=Details}/{id?}" ); + endpoints.MapHealthChecks("/health"); }); app.UseStaticFiles();