From 5809918907e4f59bc1f361e947320156430ac7aa Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 22 Feb 2021 15:28:01 +0100 Subject: [PATCH] add healthcheck endpoint at /health --- Startup.cs | 2 ++ 1 file changed, 2 insertions(+) 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();