aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 1ca5d6e11..f9ca3de56 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -320,6 +320,16 @@ app.get("/serializeDoc/:docId", async (req, res) => {
res.send({ docs, files: Array.from(files) });
});
+app.get(`${RouteStore.imageHierarchyExport}/:hierarchy`, async (req, res) => {
+ const hierarchy = JSON.parse(req.params.hierarchy);
+ Object.keys(hierarchy).map(key => {
+ let value: any;
+ if (value = hierarchy[key]) {
+
+ }
+ });
+});
+
app.get("/downloadId/:docId", async (req, res) => {
res.set('Content-disposition', `attachment;`);
res.set('Content-Type', "application/zip");