Skip to content

Commit

Permalink
Don't need to boot this middleware anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 8, 2024
1 parent a110035 commit 5f8f1db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/GraphQL/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Statamic\Contracts\GraphQL\ResponseCache;
use Statamic\GraphQL\ResponseCache\DefaultCache;
use Statamic\GraphQL\ResponseCache\NullCache;
use Statamic\Http\Middleware\API\SwapExceptionHandler;
use Statamic\Http\Middleware\HandleToken;
use Statamic\Http\Middleware\RequireStatamicPro;

Expand Down Expand Up @@ -60,7 +59,6 @@ private function addMiddleware()
collect($this->app['router']->getRoutes()->getRoutes())
->filter(fn ($route) => $route->getAction()['uses'] === GraphQLController::class.'@query')
->each(fn ($route) => $route->middleware([
SwapExceptionHandler::class,
RequireStatamicPro::class,
HandleToken::class,
]));
Expand Down

0 comments on commit 5f8f1db

Please sign in to comment.