f0ac0725b6
Cleaned up the API endpoint by simplifying the logic and adds test case to cover this bug. If you ever need to list _all_ of the servers on the system you should be using the application API endpoint for the servers most likely.
14 lines
216 B
PHP
14 lines
216 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client;
|
|
|
|
class GetServersRequest extends ClientApiRequest
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|