2020-03-23 01:15:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client\Account;
|
|
|
|
|
2020-10-11 00:15:30 +00:00
|
|
|
use Pterodactyl\Models\ApiKey;
|
2020-03-23 01:15:38 +00:00
|
|
|
use Pterodactyl\Http\Requests\Api\Client\ClientApiRequest;
|
|
|
|
|
|
|
|
class StoreApiKeyRequest extends ClientApiRequest
|
|
|
|
{
|
|
|
|
public function rules(): array
|
|
|
|
{
|
2020-10-11 00:15:30 +00:00
|
|
|
$rules = ApiKey::getRules();
|
|
|
|
|
2020-03-23 01:15:38 +00:00
|
|
|
return [
|
2020-10-11 00:15:30 +00:00
|
|
|
'description' => $rules['memo'],
|
2020-08-18 02:48:51 +00:00
|
|
|
];
|
|
|
|
}
|
2020-03-23 01:15:38 +00:00
|
|
|
}
|