misc_pterodactyl-panel/app/Http/Requests/Api/Application/Nodes/GetNodeRequest.php
2021-01-23 18:17:35 -07:00

15 lines
308 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Nodes;
use Pterodactyl\Models\Node;
class GetNodeRequest extends GetNodesRequest
{
public function resourceExists(): bool
{
$node = $this->route()->parameter('node');
return $node instanceof Node && $node->exists;
}
}