mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 09:34:50 +02:00
24 lines
392 B
PHP
24 lines
392 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Middleware\GraphQL;
|
|
|
|
use Closure;
|
|
use Illuminate\Http\Request;
|
|
|
|
class SetServingGraphQL
|
|
{
|
|
public static $isServing = false;
|
|
|
|
/**
|
|
* @param Closure(Request): mixed $next
|
|
*/
|
|
public function handle(Request $request, Closure $next): mixed
|
|
{
|
|
static::$isServing = true;
|
|
|
|
return $next($request);
|
|
}
|
|
}
|