graphene-django/examples/cookbook/cookbook/urls.py
2023-05-04 15:30:43 +01:00

10 lines
311 B
Python

from django.urls import re_path
from django.contrib import admin
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import AsyncGraphQLView
urlpatterns = [
re_path(r"^admin/", admin.site.urls),
re_path(r"^graphql$", csrf_exempt(AsyncGraphQLView.as_view(graphiql=True))),
]