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();
|
||
|
}
|
||
|
}
|