REST API: Added file download URL to listing of attachments of a board.

Thanks to xet7 !

Related #1482
pull/3382/head
Lauri Ojansivu 5 years ago
parent 152a0b50f2
commit 2ec53b27d1
  1. 2
      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,

Loading…
Cancel
Save