Skip to content

Commit 0014c70

Browse files
committed
enable health check feature
1 parent b722062 commit 0014c70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: Startup.cs

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class Startup
1616
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
1717
public void ConfigureServices(IServiceCollection services)
1818
{
19+
services.AddHealthChecks();
1920
}
2021

2122
// 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)
3435
{
3536
await context.Response.WriteAsync("Hello World!");
3637
});
38+
39+
endpoints.MapHealthChecks("/health");
3740
});
3841
}
3942
}

0 commit comments

Comments
 (0)