mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 04:15:52 -05:00
17 lines
425 B
PHP
17 lines
425 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace Pterodactyl\Http\Controllers\Api\Client;
|
||
|
|
|
||
|
|
use Illuminate\Http\Request;
|
||
|
|
use Pterodactyl\Transformers\Api\Client\AccountTransformer;
|
||
|
|
|
||
|
|
class AccountController extends ClientApiController
|
||
|
|
{
|
||
|
|
public function index(Request $request): array
|
||
|
|
{
|
||
|
|
return $this->fractal->item($request->user())
|
||
|
|
->transformWith($this->getTransformer(AccountTransformer::class))
|
||
|
|
->toArray();
|
||
|
|
}
|
||
|
|
}
|