diff options
Diffstat (limited to 'controller/filecontroller.php')
-rw-r--r-- | controller/filecontroller.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/controller/filecontroller.php b/controller/filecontroller.php index eef277ce..dd118ef9 100644 --- a/controller/filecontroller.php +++ b/controller/filecontroller.php @@ -40,20 +40,20 @@ class FileController extends ApiController { 'mimetype' => $mimetype, 'file_data' => $data ); - return $this->fileService->createFile($file, $this->userId); + return new JSONResponse($this->fileService->createFile($file, $this->userId)); } /** * @NoAdminRequired */ public function getFile($file_id) { - return $this->fileService->getFile($file_id, $this->userId); + return new JSONResponse($this->fileService->getFile($file_id, $this->userId)); } /** * @NoAdminRequired */ public function deleteFile($file_id) { - return $this->fileService->deleteFile($file_id, $this->userId); + return new JSONResponse($this->fileService->deleteFile($file_id, $this->userId)); } public function updateFile($file_id, $file_data, $filename, $mimetype, $size){ @@ -70,7 +70,7 @@ class FileController extends ApiController { $file->setFilename($filename); } if($filename || $file_data){ - $this->fileService->updateFile($file); + new JSONResponse($this->fileService->updateFile($file)); } } } |