refactoring documentAPI

This commit is contained in:
David Bomba 2016-06-05 20:12:21 +10:00
parent 1617be2485
commit 8ff41dfc7e

View File

@ -23,7 +23,7 @@ class DocumentAPIController extends BaseAPIController
{
$documents = Document::scope()->get();
return $this->itemResponse($document);
return $this->itemResponse($documents);
}