Skip to content

Commit

Permalink
Merge pull request pimcore#401 from rubanooo/graphql-playground
Browse files Browse the repository at this point in the history
Replaced graphiql with GraphQL playground
  • Loading branch information
weisswurstkanone authored Aug 30, 2021
2 parents 2b56fb4 + 80d125c commit df93c39
Show file tree
Hide file tree
Showing 12 changed files with 732 additions and 1,886 deletions.
3 changes: 2 additions & 1 deletion src/Controller/GraphQLExplorerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
namespace Pimcore\Bundle\DataHubBundle\Controller;

use Pimcore\Bundle\DataHubBundle\GraphQL\Service;
use Pimcore\Bundle\DataHubBundle\Service\CheckConsumerPermissionsService;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -57,7 +58,7 @@ public function explorerAction(RouterInterface $routingService, Request $request

return $this->render('@PimcoreDataHub/Feature/explorer.html.twig', [
'graphQLUrl' => $url,
'tokenHeader' => 'access-token'
'tokenHeader' => CheckConsumerPermissionsService::TOKEN_HEADER
]);
}
}
Loading

0 comments on commit df93c39

Please sign in to comment.