mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 04:04:45 +02:00

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.
15 lines
216 B
PHP
15 lines
216 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Api\Client;
|
|
|
|
class GetServersRequest extends ClientApiRequest
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|