misc_pterodactyl-panel/app/Http/Requests/Api/Client/Account/StoreApiKeyRequest.php

17 lines
376 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Requests\Api\Client\Account;
use Pterodactyl\Models\PersonalAccessToken;
use Pterodactyl\Http\Requests\Api\Client\AccountApiRequest;
class StoreApiKeyRequest extends AccountApiRequest
{
public function rules(): array
{
return [
'description' => PersonalAccessToken::getRules()['description'],
];
}
}