'application/vnd.api+json', ]; public static function handle(null|array|JsonResource $data = null, null|int $status = null, array $headers = []): JsonResponse { $response = ['message' => 'ok']; if (is_array($data) || $data instanceof JsonResource) { $response = ['data' => $data]; } return new JsonResponse( data: $response, status: $status ?? Response::HTTP_OK, headers: array_merge(static::$headers, $headers), ); } }