manager = $shareManager; } /** * @PublicPage * @NoAdminRequired * @NoCSRFRequired */ public function getByToken($token) { $share = $this->manager->getShareByToken($token); $node = $share->getNode(); // if ($node->getType() === 'dir') { TODO } $content = $node->getContent(); $mimetype = $node->getMimeType(); $this->returnRawResponse($content, $mimetype); } }