Skip to content

Commit ef1842e

Browse files
authored
fix: Regex url paths used as simple url path values (#41)
1 parent 655b305 commit ef1842e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/core/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from common.core import views
55

66
urlpatterns = [
7-
path(r"^version/?", views.version_info),
8-
path(r"^health/liveness/?", views.liveness),
9-
path(r"^health/readiness/?", include("health_check.urls", namespace="health")),
7+
path("version", views.version_info),
8+
path("health/liveness", views.liveness),
9+
path("health/readiness", include("health_check.urls", namespace="health")),
1010
re_path(r"^health", include("health_check.urls", namespace="health-deprecated")),
1111
# Aptible health checks must be on /healthcheck and cannot redirect
1212
# see https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/app-endpoints/https-endpoints/health-checks

0 commit comments

Comments
 (0)