feat(export/zip): add option to export with share theme

This commit is contained in:
Elian Doran
2025-06-23 18:13:47 +03:00
parent 55bb2fdb9b
commit a9f68f5487
6 changed files with 119 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ function exportBranch(req: Request, res: Response) {
const taskContext = new TaskContext(taskId, "export");
try {
if (type === "subtree" && (format === "html" || format === "markdown")) {
if (type === "subtree" && (format === "html" || format === "markdown" || format === "share")) {
zipExportService.exportToZip(taskContext, branch, format, res);
} else if (type === "single") {
if (format !== "html" && format !== "markdown") {