cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
25 lines
588 B
PHP
25 lines
588 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Servers\Startup;
|
|
|
|
use Pterodactyl\Models\Permission;
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
class UpdateStartupVariableRequest extends ClientApiRequest
|
|
{
|
|
public function permission(): string
|
|
{
|
|
return Permission::ACTION_STARTUP_UPDATE;
|
|
}
|
|
|
|
/**
|
|
* The actual validation of the variable's value will happen inside the controller.
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'key' => 'required|string',
|
|
'value' => 'present',
|
|
];
|
|
}
|
|
}
|