summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareInfoController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/Controller/ShareInfoController.php')
-rw-r--r--apps/files_sharing/lib/Controller/ShareInfoController.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareInfoController.php b/apps/files_sharing/lib/Controller/ShareInfoController.php
index d926721f06c..696b064ac0f 100644
--- a/apps/files_sharing/lib/Controller/ShareInfoController.php
+++ b/apps/files_sharing/lib/Controller/ShareInfoController.php
@@ -41,9 +41,9 @@ class ShareInfoController extends ApiController {
* @param null $password
* @param null $dir
* @return JSONResponse
+ * @throws ShareNotFound
*/
public function info($t, $password = null, $dir = null) {
- $this->logger->error('HERE!');
try {
$share = $this->shareManager->getShareByToken($t);
} catch (ShareNotFound $e) {
@@ -79,12 +79,7 @@ class ShareInfoController extends ApiController {
}
}
- $result = [
- 'data' => $this->parseNode($node),
- 'status' => 'success'
- ];
-
- return new JSONResponse($result);
+ return new JSONResponse($this->parseNode($node));
}
private function parseNode(Node $node) {