share: Render mind map

This commit is contained in:
Elian Doran
2024-09-01 22:41:48 +03:00
parent 1437df7de1
commit 5c2446be67
2 changed files with 3 additions and 1 deletions

View File

@@ -279,6 +279,8 @@ function register(router: Router) {
renderImageAttachment(image, res, 'canvas-export.svg');
} else if (image.type === 'mermaid') {
renderImageAttachment(image, res, 'mermaid-export.svg');
} else if (image.type === "mindMap") {
renderImageAttachment(image, res, 'mindmap-export.svg');
} else {
return res.status(400)
.json({ message: "Requested note is not a shareable image" });