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)