Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-07 22:33:23 +0300
committerbrantje <brantje@gmail.com>2016-10-07 22:33:23 +0300
commit3357c02da0a5e7567421c021894c67115629d76b (patch)
treed0ee91ec10222b4fa56b1b7b9ec26fa97e42da8e /controller
parent2c90899e6396e0a2c8138bc8b9df49d803f3eec0 (diff)
Return jsonreponse
Diffstat (limited to 'controller')
-rw-r--r--controller/filecontroller.php8
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));
}
}
}