api(application): fix requests, again
This commit is contained in:
parent
da3c7fa455
commit
18bdde8b81
15 changed files with 27 additions and 237 deletions
|
@ -10,24 +10,10 @@ use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
|
|||
|
||||
class GetExternalServerRequest extends ApplicationApiRequest
|
||||
{
|
||||
/**
|
||||
* @var \Pterodactyl\Models\Server
|
||||
*/
|
||||
private $serverModel;
|
||||
private Server $serverModel;
|
||||
protected string $resource = AdminAcl::RESOURCE_SERVERS;
|
||||
protected int $permission = AdminAcl::READ;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $resource = AdminAcl::RESOURCE_SERVERS;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $permission = AdminAcl::READ;
|
||||
|
||||
/**
|
||||
* Determine if the requested external user exists.
|
||||
*/
|
||||
public function resourceExists(): bool
|
||||
{
|
||||
$repository = $this->container->make(ServerRepositoryInterface::class);
|
||||
|
@ -43,9 +29,6 @@ class GetExternalServerRequest extends ApplicationApiRequest
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the server model for the requested external server.
|
||||
*/
|
||||
public function getServerModel(): Server
|
||||
{
|
||||
return $this->serverModel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue