Allow to find servers by short UUID (Application API) (#3340)
This commit is contained in:
parent
e33b1792b1
commit
d45c67a6e1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue