Always allow specifying a page size with the API; closes #3218
This commit is contained in:
parent
9b46d59045
commit
48ad8f538e
8 changed files with 10 additions and 9 deletions
|
@ -37,7 +37,7 @@ class NodeDeploymentController extends ApplicationApiController
|
|||
$nodes = $this->viableNodesService->setLocations($data['location_ids'] ?? [])
|
||||
->setMemory($data['memory'])
|
||||
->setDisk($data['disk'])
|
||||
->handle($request->input('page') ?? 0);
|
||||
->handle($request->query('per_page'), $request->query('page'));
|
||||
|
||||
return $this->fractal->collection($nodes)
|
||||
->transformWith($this->getTransformer(NodeTransformer::class))
|
||||
|
|
Reference in a new issue