2
0
Эх сурвалжийг харах

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

Thanks to xet7 !

Related #1482
Lauri Ojansivu 4 жил өмнө
parent
commit
2ec53b27d1

+ 2 - 0
models/boards.js

@@ -1779,6 +1779,8 @@ if (Meteor.isServer) {
             attachmentId: doc._id,
             attachmentId: doc._id,
             attachmentName: doc.original.name,
             attachmentName: doc.original.name,
             attachmentType: doc.original.type,
             attachmentType: doc.original.type,
+            url: FlowRouter.url(doc.url()),
+            urlDownload: `${FlowRouter.url(doc.url())}?&download=true&token=`,
             cardId: doc.cardId,
             cardId: doc.cardId,
             listId: doc.listId,
             listId: doc.listId,
             swimlaneId: doc.swimlaneId,
             swimlaneId: doc.swimlaneId,