mirror of
https://github.com/pterodactyl/panel.git
synced 2026-05-02 07:42:33 -05:00
api(application): v2 backport
This commit is contained in:
@@ -17,7 +17,7 @@ class SSHKeyController extends ClientApiController
|
||||
public function index(ClientApiRequest $request): array
|
||||
{
|
||||
return $this->fractal->collection($request->user()->sshKeys)
|
||||
->transformWith($this->getTransformer(UserSSHKeyTransformer::class))
|
||||
->transformWith(UserSSHKeyTransformer::class)
|
||||
->toArray();
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class SSHKeyController extends ClientApiController
|
||||
->log();
|
||||
|
||||
return $this->fractal->item($model)
|
||||
->transformWith($this->getTransformer(UserSSHKeyTransformer::class))
|
||||
->transformWith(UserSSHKeyTransformer::class)
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user