graphene-django/graphene_django/tests/urls_pretty.py

7 lines
184 B
Python

from django.urls import re_path
from ..views import GraphQLView
from .schema_view import schema
urlpatterns = [re_path(r"^graphql", GraphQLView.as_view(schema=schema, pretty=True))]