Skip to content

Commit b4e144e

Browse files
committed
AbstractRestController->index() now filters using query parameters by default
1 parent 79956de commit b4e144e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Controllers/AbstractRestController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public function destroy($id)
6969
*/
7070
public function index()
7171
{
72-
$cursor = $this->repository->collection($this->collectionHelper->currentPosition(), $this->collectionHelper->pageSize());
72+
$cursor = $this->repository->collection($this->collectionHelper->currentPosition(), $this->collectionHelper->pageSize(),
73+
$this->collectionHelper->query($this->transformer));
7374

7475
return $this->api->collection($cursor, $this->transformer);
7576
}

0 commit comments

Comments
 (0)