summaryrefslogtreecommitdiffstats
path: root/controller/itemapicontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/itemapicontroller.php')
-rw-r--r--controller/itemapicontroller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/itemapicontroller.php b/controller/itemapicontroller.php
index 0fb613c92..06566f804 100644
--- a/controller/itemapicontroller.php
+++ b/controller/itemapicontroller.php
@@ -52,7 +52,7 @@ class ItemApiController extends ApiController {
* @param bool $oldestFirst
* @return array|mixed
*/
- public function index($type, $id, $getRead, $batchSize=20, $offset=0,
+ public function index($type=3, $id=0, $getRead=true, $batchSize=-1, $offset=0,
$oldestFirst=false) {
return $this->serializer->serialize(
$this->itemService->findAll(
@@ -73,7 +73,7 @@ class ItemApiController extends ApiController {
* @param int $lastModified
* @return array|mixed
*/
- public function updated($type, $id, $lastModified=0) {
+ public function updated($type=3, $id=0, $lastModified=0) {
return $this->serializer->serialize(
$this->itemService->findAllNew($id, $type, $lastModified,
true, $this->userId)