diff --git a/backend/Platform/urls.py b/backend/Platform/urls.py index b93269b..f152f54 100644 --- a/backend/Platform/urls.py +++ b/backend/Platform/urls.py @@ -13,7 +13,7 @@ path("accounts/", include("accounts.urls", namespace="oauth2_provider")), path("options/", include("options.urls", namespace="options")), path("identity/", include("identity.urls", namespace="identity")), - path("healthcheck/", include("health.urls", namespace="healthcheck")), + path("health/", include("health.urls", namespace="health")), path("s/", include("shortener.urls", namespace="shortener")), path( "openapi/", diff --git a/backend/health/__init__.py b/backend/health/__init__.py index e860540..e69de29 100644 --- a/backend/health/__init__.py +++ b/backend/health/__init__.py @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class HealthConfig(AppConfig): - name = "health" diff --git a/backend/health/urls.py b/backend/health/urls.py index f8e0b52..7e1f218 100644 --- a/backend/health/urls.py +++ b/backend/health/urls.py @@ -5,5 +5,5 @@ app_name = "health" urlpatterns = [ - path("backend/", HealthView.as_view(), name="backend"), + path("", HealthView.as_view(), name="health"), ] diff --git a/backend/tests/identity/test_views.py b/backend/tests/identity/test_views.py index e44e3d4..09685d0 100644 --- a/backend/tests/identity/test_views.py +++ b/backend/tests/identity/test_views.py @@ -186,7 +186,7 @@ def setUp(self): self.client = Client() def test_health(self): - url = reverse("healthcheck:backend") + url = reverse("health:health") resp = self.client.get(url) self.assertEqual(resp.status_code, 200) self.assertEqual(resp.json(), {"message": "OK"}) diff --git a/k8s/main.ts b/k8s/main.ts index 69c887a..332dec3 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -48,7 +48,7 @@ export class MyChart extends PennLabsChart { "/openapi", "/documentation", "/Shibboleth.sso", - "/healthcheck", + "/health", ], isSubdomain: true, }],