From f76763496ac714eeaca295c4910caee035bab207 Mon Sep 17 00:00:00 2001 From: FoskyM Date: Sun, 1 Oct 2023 22:10:09 +0800 Subject: [PATCH] fix: client info --- src/Api/Controller/ShowClientController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controller/ShowClientController.php b/src/Api/Controller/ShowClientController.php index 784736f..5a64375 100644 --- a/src/Api/Controller/ShowClientController.php +++ b/src/Api/Controller/ShowClientController.php @@ -2,7 +2,7 @@ namespace FoskyM\OAuthCenter\Api\Controller; -use Flarum\Api\Controller\AbstractShowController; +use Flarum\Api\Controller\AbstractListController; use Flarum\Http\RequestUtil; use Illuminate\Support\Arr; use Psr\Http\Message\ServerRequestInterface; @@ -10,7 +10,7 @@ use Tobscure\JsonApi\Document; use FoskyM\OAuthCenter\Models\Client; use FoskyM\OAuthCenter\Api\Serializer\ClientPublicSerializer; -class ShowClientController extends AbstractShowController +class ShowClientController extends AbstractListController { public $serializer = ClientPublicSerializer::class; protected function data(ServerRequestInterface $request, Document $document)