Add GraphQL urls

This commit is contained in:
Ramon Wenger 2022-11-21 12:04:42 +01:00
parent dc59b41455
commit cb7b00ff40
1 changed files with 2 additions and 0 deletions

View File

@ -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)