From cb7b00ff40eb798657a047566d5cc997e0a4a14d Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 21 Nov 2022 12:04:42 +0100 Subject: [PATCH] Add GraphQL urls --- server/config/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/config/urls.py b/server/config/urls.py index 715f2319..dae4157a 100644 --- a/server/config/urls.py +++ b/server/config/urls.py @@ -6,6 +6,7 @@ from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import include, path, re_path from django.views import defaults as default_views from ratelimit.exceptions import Ratelimited +from grapple import urls as grapple_urls from vbv_lernwelt.core.middleware.auth import django_view_authentication_exempt from vbv_lernwelt.core.views import ( @@ -73,6 +74,7 @@ urlpatterns = [ user_passes_test(lambda u: u.is_superuser, login_url='/login/')( raise_example_error), ), path("server/checkratelimit/", check_rate_limit), + path("server/", include(grapple_urls)), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)