diff --git a/src/Controllers/ApiController.php b/src/Controllers/ApiController.php index 8512a25..e99a9c8 100644 --- a/src/Controllers/ApiController.php +++ b/src/Controllers/ApiController.php @@ -117,9 +117,9 @@ public function failure(array $context = []) * * @return HTTPResponse */ - public function returnPaginated(SS_List $list, $keyFunc = null, $dataFunc = null) + public function returnPaginated(SS_List $list, $keyFunc = null, $dataFunc = null, $pageLength = 100) { - list($list, $output) = $this->prepPaginatedOutput($list, $keyFunc, $dataFunc); + list($list, $output) = $this->prepPaginatedOutput($list, $keyFunc, $dataFunc, $pageLength); return $this->returnArray([ 'records' => $output,