diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-05 15:31:25 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-10-05 15:31:25 -0400 |
commit | c17fba4c07a1cc0e40d08228b4cdc4182615496b (patch) | |
tree | 9329972219bf93cb8642f02bf19aac0a1122e50a /src/server/index.ts | |
parent | 0538db262ff611c5273c363470886d2aa42cf760 (diff) |
beginning external file download
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 10 |
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"); |