Skip to content

Commit

Permalink
AbstractRestController->index() now filters using query parameters by…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
AndyWendt committed Aug 20, 2015
1 parent 79956de commit b4e144e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Controllers/AbstractRestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public function destroy($id)
*/
public function index()
{
$cursor = $this->repository->collection($this->collectionHelper->currentPosition(), $this->collectionHelper->pageSize());
$cursor = $this->repository->collection($this->collectionHelper->currentPosition(), $this->collectionHelper->pageSize(),
$this->collectionHelper->query($this->transformer));

return $this->api->collection($cursor, $this->transformer);
}
Expand Down

0 comments on commit b4e144e

Please sign in to comment.