Skip to content
Permalink
Browse files
enable health check feature
  • Loading branch information
cwe1ss committed Oct 22, 2020
1 parent b722062 commit 0014c70e68ac97e735572be12174d0f9ab3ff7c8
Showing 1 changed file with 3 additions and 0 deletions.
@@ -16,6 +16,7 @@ public class Startup
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -34,6 +35,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
await context.Response.WriteAsync("Hello World!");
});

endpoints.MapHealthChecks("/health");
});
}
}

0 comments on commit 0014c70

Please sign in to comment.