WikiContent using easy-markdown-editor

This commit is contained in:
jdg committed 2022-04-27 19:08:42 +00:00
1 parent 72489186ae
commit 5dc38e2de9
11 files changed
+117 -128

No files matched your search

+7 -4
View File
@@ -43,10 +43,13 @@ class WikiPageService {
}
public function find(int $wikiId, int $id, string $userId) {
echo "\nwikiId: $wikiId";
echo "\nid: $id";
echo "\nuserId: $userId";
die();
try {
$wiki = $this->mapper->find($wikiId, $userId);
$wikiPageContent = $this->wikiHelper->setFolderId($wiki->getFileId())->getWikiPageContent($id);
} catch(Exception $e) {
$this->handleException($e);
}
return ['content'=>$wikiPageContent];
}
public function create(int $wikiId, int $parentFolderId, string $title, ?string $content, string $userId):array {