From f8a3ae9bc4b40a009eaab0ece48f8a58a5747e20 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Fri, 4 Apr 2025 15:51:31 +0100 Subject: [PATCH] fix: Regex url paths used as simple url path values --- src/common/core/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/core/urls.py b/src/common/core/urls.py index ec8d689..b0641b5 100644 --- a/src/common/core/urls.py +++ b/src/common/core/urls.py @@ -4,9 +4,9 @@ from common.core import views urlpatterns = [ - path(r"^version/?", views.version_info), - path(r"^health/liveness/?", views.liveness), - path(r"^health/readiness/?", include("health_check.urls", namespace="health")), + path("version", views.version_info), + path("health/liveness", views.liveness), + path("health/readiness", include("health_check.urls", namespace="health")), re_path(r"^health", include("health_check.urls", namespace="health-deprecated")), # Aptible health checks must be on /healthcheck and cannot redirect # see https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/https-endpoints/health-checks