mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
26 lines
464 B
PHP
26 lines
464 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client;
|
|
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class GetServersRequest extends ClientApiRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return ValidationRules
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'type' => ['sometimes', 'nullable', 'string', Rule::in(['owner', 'admin', 'admin-all'])],
|
|
];
|
|
}
|
|
}
|