From a28b952eafc83ac6f6fc1a3d99805866bc41fde9 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 4 Sep 2021 10:56:37 +0200 Subject: routes refactor --- apps/Notes/helpers/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/Notes/helpers/export.js') 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"}) -- cgit v1.2.3