Skip to content

Commit 67bdd18

Browse files
committed
fix: custom health check view
1 parent 6c57178 commit 67bdd18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: codeforlife/urls/patterns.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818

1919
def get_urlpatterns(
2020
api_url_patterns: UrlPatterns,
21+
health_check_view: t.Type[HealthCheckView] = HealthCheckView,
2122
include_user_urls: bool = True,
2223
) -> UrlPatterns:
2324
"""Generate standard url patterns for each service.
2425
2526
Args:
2627
api_urls_path: The path to the api's urls.
28+
health_check_view: The health check view to use.
2729
include_user_urls: Whether or not to include the CFL's user urls.
2830
2931
Returns:
@@ -77,7 +79,7 @@ def get_urlpatterns(
7779

7880
health_check_path = path(
7981
"health-check/",
80-
HealthCheckView.as_view(),
82+
health_check_view.as_view(),
8183
name="health-check",
8284
)
8385

0 commit comments

Comments
 (0)