Skip to content

Commit d45c67a

Browse files
authored
Allow to find servers by short UUID (Application API) (pterodactyl#3340)
1 parent e33b179 commit d45c67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/Application/Servers/ServerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
public function index(GetServersRequest $request): array
5555
{
5656
$servers = QueryBuilder::for(Server::query())
57-
->allowedFilters(['uuid', 'name', 'image', 'external_id'])
57+
->allowedFilters(['uuid', 'uuidShort', 'name', 'image', 'external_id'])
5858
->allowedSorts(['id', 'uuid'])
5959
->paginate($request->query('per_page') ?? 50);
6060

0 commit comments

Comments
 (0)