Fixed gql playground #

This commit is contained in:
Sven Heidemann 2023-06-18 18:51:36 +02:00
parent 607b7d8aee
commit 2c9569b75f

View File

@ -1,5 +1,5 @@
from ariadne import graphql_sync from ariadne import graphql_sync
from ariadne.explorer import ExplorerGraphiQL from ariadne.explorer import ExplorerPlayground
from cpl_core.configuration import ConfigurationABC from cpl_core.configuration import ConfigurationABC
from cpl_core.environment import ApplicationEnvironmentABC from cpl_core.environment import ApplicationEnvironmentABC
from flask import request, jsonify from flask import request, jsonify
@ -30,7 +30,7 @@ class GraphQLController:
if self._env.environment_name != "development": if self._env.environment_name != "development":
return "", 403 return "", 403
return ExplorerGraphiQL().html(None), 200 return ExplorerPlayground().html(None), 200
@Route.post(f"{BasePath}") @Route.post(f"{BasePath}")
@Route.authorize(by_api_key=True) @Route.authorize(by_api_key=True)