mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 00:24:44 +02:00
Allow to find servers by short UUID (Application API) (#3340)
This commit is contained in:
parent
e33b1792b1
commit
d45c67a6e1
@ -54,7 +54,7 @@ class ServerController extends ApplicationApiController
|
||||
public function index(GetServersRequest $request): array
|
||||
{
|
||||
$servers = QueryBuilder::for(Server::query())
|
||||
->allowedFilters(['uuid', 'name', 'image', 'external_id'])
|
||||
->allowedFilters(['uuid', 'uuidShort', 'name', 'image', 'external_id'])
|
||||
->allowedSorts(['id', 'uuid'])
|
||||
->paginate($request->query('per_page') ?? 50);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user