Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 06b3e4b

Browse files
davidfowlDamianEdwards
authored andcommitted
Use the endpoint routes
1 parent 3d4be5b commit 06b3e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/6. Production Readiness and Deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
services.AddHealthChecks()
88
.AddDbContextCheck<ApplicationDbContext>();
99
```
10-
1. Add the health checks middleware by modifying `Configure` to call `app.UseHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
10+
1. Wire up health checks by modifying the `UseEndpoints` to add a call to `endpoints.MapHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
1111
1. Test the end point by navigating to `/health`, it should return the text `Healthy`.
1212

1313
## Adding EF Healthchecks to the FrontEnd
@@ -17,7 +17,7 @@
1717
services.AddHealthChecks()
1818
.AddDbContextCheck<IdentityDbContext>();
1919
```
20-
1. Add the health checks middleware by modifying `Configure` to call `app.UseHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
20+
1. Wire up health checks by modifying the `UseEndpoints` to add a call to `endpoints.MapHealthChecks("/health");`. This will configure the health checks on the `/health` end point.
2121
1. Test the end point by navigating to `/health`, it should return the text `Healthy`.
2222

2323
## Adding a custom health check to test for BackEnd availability

0 commit comments

Comments
 (0)