diff options
author | 2021-09-04 10:56:37 +0200 | |
---|---|---|
committer | 2021-09-04 10:56:37 +0200 | |
commit | a28b952eafc83ac6f6fc1a3d99805866bc41fde9 (patch) | |
tree | 5e8e99ef5ac2b11e8a8ab027a976caa9b1af480f /apps/Notes/helpers/export.js | |
parent | 467233f771d745aeb9f4e69b93d2fb24a1a95d3e (diff) | |
download | my_apps-a28b952eafc83ac6f6fc1a3d99805866bc41fde9.tar.gz my_apps-a28b952eafc83ac6f6fc1a3d99805866bc41fde9.tar.bz2 my_apps-a28b952eafc83ac6f6fc1a3d99805866bc41fde9.zip |
routes refactor
Diffstat (limited to 'apps/Notes/helpers/export.js')
-rw-r--r-- | apps/Notes/helpers/export.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/Notes/helpers/export.js b/apps/Notes/helpers/export.js index 80fa100..4a0db9c 100644 --- a/apps/Notes/helpers/export.js +++ b/apps/Notes/helpers/export.js @@ -23,7 +23,7 @@ export const handleExport = (e, ids, notes) => { Promise.all(ids.map(async id => { const title = notes.find(n => n.noteId === id).title - const {content} = await fetchJson(`/api/note/${id}`) + const {content} = await fetchJson(`/api/notes/${id}`) zip.folder('notes').file(filename(title), content, {binary: true}) })).then(() => { zip.generateAsync({type:"blob"}) |