From e3e3b571ae1120a109f28957da45617cdfed5569 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 9 Aug 2021 20:58:25 +0300 Subject: [PATCH] feat(endpoints): update utils endpoint --- src/flextype/Endpoints/utils.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flextype/Endpoints/utils.php b/src/flextype/Endpoints/utils.php index 85e812d1..41c294b2 100644 --- a/src/flextype/Endpoints/utils.php +++ b/src/flextype/Endpoints/utils.php @@ -9,8 +9,8 @@ declare(strict_types=1); namespace Flextype; -use Psr\Http\Message\ResponseInterface as Response; -use Psr\Http\Message\ServerRequestInterface as Request; +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; use function array_replace_recursive; use function filesystem; @@ -30,8 +30,8 @@ use function flextype; * Returns: * Image file */ -app()->post('/api/utils/cache/clear', function (Request $request, Response $response) { - +app()->post('/api/utils/cache/clear', function (ServerRequestInterface $request, ResponseInterface $response) { + // Get Query Params $data = $request->getParsedBody();