Skip to content

Commit

Permalink
fix: custom health check view
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 2, 2024
1 parent 6c57178 commit 67bdd18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codeforlife/urls/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@

def get_urlpatterns(
api_url_patterns: UrlPatterns,
health_check_view: t.Type[HealthCheckView] = HealthCheckView,
include_user_urls: bool = True,
) -> UrlPatterns:
"""Generate standard url patterns for each service.
Args:
api_urls_path: The path to the api's urls.
health_check_view: The health check view to use.
include_user_urls: Whether or not to include the CFL's user urls.
Returns:
Expand Down Expand Up @@ -77,7 +79,7 @@ def get_urlpatterns(

health_check_path = path(
"health-check/",
HealthCheckView.as_view(),
health_check_view.as_view(),
name="health-check",
)

Expand Down

0 comments on commit 67bdd18

Please sign in to comment.