diff --git a/main/urls.py b/main/urls.py index ba62f9d..99cdc11 100644 --- a/main/urls.py +++ b/main/urls.py @@ -26,7 +26,17 @@ from content.views import UserQuery -urlpatterns = [path("admin/", admin.site.urls), path("chat_message", UserQuery.as_view())] +urlpatterns = [ + path("admin/", admin.site.urls), + path("chat_message", UserQuery.as_view()), + path( + "graphql/", + CustomAsyncGraphQLView.as_view( + schema=graphql_schema, + graphiql=False, + ), + ), +] if settings.DEBUG: urlpatterns.append(path("graphiql/", csrf_exempt(CustomAsyncGraphQLView.as_view(schema=graphql_schema))))