diff --git a/backend/backend/urls.py b/backend/backend/urls.py index 0a09d548..82419052 100644 --- a/backend/backend/urls.py +++ b/backend/backend/urls.py @@ -16,15 +16,15 @@ from allauth.socialaccount.providers.discord.urls import urlpatterns as discord_urls from django.contrib import admin from django.contrib.auth.views import LogoutView -from django.views.generic import TemplateView +from django.http import HttpResponse from django.urls import path, include patterns = [ path('admin/', admin.site.urls), path('api/', include(('api.urls', 'api'))), - # Auth stuff (TODO - replace this because it's sorta workaroundy) path('accounts/', include(discord_urls)), + path('health/', lambda _: HttpResponse()), path('logout/', LogoutView.as_view()), ] diff --git a/backend/backend/urls_live.py b/backend/backend/urls_live.py index 0d6c906e..730d3119 100644 --- a/backend/backend/urls_live.py +++ b/backend/backend/urls_live.py @@ -16,6 +16,7 @@ from allauth.socialaccount.providers.discord.urls import urlpatterns as discord_urls from allauth.socialaccount.views import login_cancelled, login_error from django.contrib.auth.views import LogoutView +from django.http import HttpResponse from django.urls import path, include patterns = [ @@ -25,6 +26,7 @@ path('accounts/', include(discord_urls)), path('auth/cancelled/', login_cancelled, name='socialaccount_login_cancelled'), path('auth/error/', login_error, name='socialaccount_login_error'), + path('health/', lambda _: HttpResponse()), path('logout/', LogoutView.as_view()), ] diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d69e8771..6b65b334 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,20 +1,5 @@