From 9a51e5123552131db4b03c85234eecb0f3cba99c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 18 Jun 2023 18:51:36 +0200 Subject: [PATCH] Fixed gql playground --- kdb-bot/src/bot_api/controller/graphql_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kdb-bot/src/bot_api/controller/graphql_controller.py b/kdb-bot/src/bot_api/controller/graphql_controller.py index aefd8f13..fda337d5 100644 --- a/kdb-bot/src/bot_api/controller/graphql_controller.py +++ b/kdb-bot/src/bot_api/controller/graphql_controller.py @@ -1,5 +1,5 @@ from ariadne import graphql_sync -from ariadne.explorer import ExplorerGraphiQL +from ariadne.explorer import ExplorerPlayground from cpl_core.configuration import ConfigurationABC from cpl_core.environment import ApplicationEnvironmentABC from flask import request, jsonify @@ -30,7 +30,7 @@ class GraphQLController: if self._env.environment_name != "development": return "", 403 - return ExplorerGraphiQL().html(None), 200 + return ExplorerPlayground().html(None), 200 @Route.post(f"{BasePath}") @Route.authorize(by_api_key=True) -- 2.45.2