mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-10-21 11:14:17 +03:00
10 lines
311 B
Python
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))),
|
|
]
|