mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 18:00:12 +01:00
REST API: Added file download URL to listing of attachments of a board.
Thanks to xet7 ! Related #1482
This commit is contained in:
parent
152a0b50f2
commit
2ec53b27d1
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue