From d45c67a6e14856a393ccb173239120ad3e5ec51e Mon Sep 17 00:00:00 2001 From: Mark Ross <63092038+markross2@users.noreply.github.com> Date: Sat, 5 Jun 2021 12:43:57 -0300 Subject: [PATCH] Allow to find servers by short UUID (Application API) (#3340) --- .../Controllers/Api/Application/Servers/ServerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Application/Servers/ServerController.php b/app/Http/Controllers/Api/Application/Servers/ServerController.php index e0e679930..fb1871f69 100644 --- a/app/Http/Controllers/Api/Application/Servers/ServerController.php +++ b/app/Http/Controllers/Api/Application/Servers/ServerController.php @@ -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);