5774c8a53e
with tamper prevention, only allowing specific endpoints to be used.
35 lines
807 B
PHP
35 lines
807 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Admin\Extensions\Blueprint;
|
|
|
|
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
|
|
|
|
class BlueprintSettingsFormRequest extends AdminFormRequest
|
|
{
|
|
/**
|
|
* Return all the rules to apply to this request's data.
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'placeholder' => 'string',
|
|
|
|
'developer' => 'string',
|
|
'developer:cmd' => 'string',
|
|
|
|
'api:endpoint' => 'string',
|
|
];
|
|
}
|
|
|
|
public function attributes(): array
|
|
{
|
|
return [
|
|
'placeholder' => 'Placeholder',
|
|
|
|
'developer' => 'Developer Mode',
|
|
'developer:cmd' => 'Developer Command',
|
|
|
|
'api:endpoint' => 'API Endpoint',
|
|
];
|
|
}
|
|
}
|