2020-12-24 17:15:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Files;
|
|
|
|
|
|
|
|
use Pterodactyl\Models\Permission;
|
|
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
|
2021-08-05 03:55:15 +00:00
|
|
|
class PullFileRequest extends ClientApiRequest
|
2020-12-24 17:15:03 +00:00
|
|
|
{
|
|
|
|
public function permission(): string
|
|
|
|
{
|
|
|
|
return Permission::ACTION_FILE_CREATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string[]
|
|
|
|
*/
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
2021-07-25 19:24:52 +00:00
|
|
|
'root' => 'sometimes|nullable|string',
|
2020-12-24 17:15:03 +00:00
|
|
|
'url' => 'required|string|url',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|