mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-10-16 16:54:27 +03:00
17 lines
342 B
Python
17 lines
342 B
Python
from django.urls import path
|
|
|
|
from graphene.validation import DisableIntrospection
|
|
|
|
from ..views import GraphQLView
|
|
from .schema_view import schema
|
|
|
|
|
|
class View(GraphQLView):
|
|
schema = schema
|
|
|
|
|
|
urlpatterns = [
|
|
path("graphql/", View.as_view()),
|
|
path("graphql/validation/", View.as_view(validation_rules=(DisableIntrospection,))),
|
|
]
|