fix: client info
This commit is contained in:
parent
663828aaf7
commit
f76763496a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue