2018-01-13 20:08:19 +00:00
|
|
|
<?php
|
|
|
|
|
2018-01-20 01:58:57 +00:00
|
|
|
namespace Pterodactyl\Http\Requests\Api\Application\Nodes;
|
2018-01-13 20:08:19 +00:00
|
|
|
|
|
|
|
use Pterodactyl\Models\Node;
|
|
|
|
|
2018-01-20 03:47:06 +00:00
|
|
|
class GetNodeRequest extends GetNodesRequest
|
2018-01-13 20:08:19 +00:00
|
|
|
{
|
|
|
|
public function resourceExists(): bool
|
|
|
|
{
|
|
|
|
$node = $this->route()->parameter('node');
|
|
|
|
|
|
|
|
return $node instanceof Node && $node->exists;
|
|
|
|
}
|
|
|
|
}
|