fix: client info

This commit is contained in:
FoskyM 2023-10-01 22:10:09 +08:00
parent 663828aaf7
commit f76763496a
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C

View file

@ -2,7 +2,7 @@
namespace FoskyM\OAuthCenter\Api\Controller; namespace FoskyM\OAuthCenter\Api\Controller;
use Flarum\Api\Controller\AbstractShowController; use Flarum\Api\Controller\AbstractListController;
use Flarum\Http\RequestUtil; use Flarum\Http\RequestUtil;
use Illuminate\Support\Arr; use Illuminate\Support\Arr;
use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ServerRequestInterface;
@ -10,7 +10,7 @@ use Tobscure\JsonApi\Document;
use FoskyM\OAuthCenter\Models\Client; use FoskyM\OAuthCenter\Models\Client;
use FoskyM\OAuthCenter\Api\Serializer\ClientPublicSerializer; use FoskyM\OAuthCenter\Api\Serializer\ClientPublicSerializer;
class ShowClientController extends AbstractShowController class ShowClientController extends AbstractListController
{ {
public $serializer = ClientPublicSerializer::class; public $serializer = ClientPublicSerializer::class;
protected function data(ServerRequestInterface $request, Document $document) protected function data(ServerRequestInterface $request, Document $document)