We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c57178 commit 67bdd18Copy full SHA for 67bdd18
codeforlife/urls/patterns.py
@@ -18,12 +18,14 @@
18
19
def get_urlpatterns(
20
api_url_patterns: UrlPatterns,
21
+ health_check_view: t.Type[HealthCheckView] = HealthCheckView,
22
include_user_urls: bool = True,
23
) -> UrlPatterns:
24
"""Generate standard url patterns for each service.
25
26
Args:
27
api_urls_path: The path to the api's urls.
28
+ health_check_view: The health check view to use.
29
include_user_urls: Whether or not to include the CFL's user urls.
30
31
Returns:
@@ -77,7 +79,7 @@ def get_urlpatterns(
77
79
78
80
health_check_path = path(
81
"health-check/",
- HealthCheckView.as_view(),
82
+ health_check_view.as_view(),
83
name="health-check",
84
)
85
0 commit comments