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