From 2ec53b27d14049bc9622861492cac301512a1e33 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 3 Dec 2020 06:21:46 +0200 Subject: [PATCH] REST API: Added file download URL to listing of attachments of a board. Thanks to xet7 ! Related #1482 --- models/boards.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/boards.js b/models/boards.js index da901b500..dfaec0d28 100644 --- a/models/boards.js +++ b/models/boards.js @@ -1779,6 +1779,8 @@ if (Meteor.isServer) { attachmentId: doc._id, attachmentName: doc.original.name, attachmentType: doc.original.type, + url: FlowRouter.url(doc.url()), + urlDownload: `${FlowRouter.url(doc.url())}?&download=true&token=`, cardId: doc.cardId, listId: doc.listId, swimlaneId: doc.swimlaneId,