From 8ff41dfc7ee778b3e9625b1fd917ab727f608fe8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 5 Jun 2016 20:12:21 +1000 Subject: [PATCH] refactoring documentAPI --- app/Http/Controllers/DocumentAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/DocumentAPIController.php b/app/Http/Controllers/DocumentAPIController.php index e80c0299b03e..ee00bf6e049f 100644 --- a/app/Http/Controllers/DocumentAPIController.php +++ b/app/Http/Controllers/DocumentAPIController.php @@ -23,7 +23,7 @@ class DocumentAPIController extends BaseAPIController { $documents = Document::scope()->get(); - return $this->itemResponse($document); + return $this->itemResponse($documents); }