Healthcheck
This commit is contained in:
@@ -31,6 +31,7 @@ builder.Host.UseSerilog();
|
|||||||
|
|
||||||
// Add services to the container.
|
// Add services to the container.
|
||||||
builder.Services.AddControllersWithViews();
|
builder.Services.AddControllersWithViews();
|
||||||
|
builder.Services.AddHealthChecks();
|
||||||
|
|
||||||
|
|
||||||
// HttpContentAccessor
|
// HttpContentAccessor
|
||||||
@@ -213,4 +214,6 @@ app.MapControllerRoute(
|
|||||||
pattern: "{controller=Auth}/{action=Login}/"
|
pattern: "{controller=Auth}/{action=Login}/"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
app.MapHealthChecks("/healthz");
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
Reference in New Issue
Block a user