mirror of
https://github.com/plankanban/planka.git
synced 2025-07-22 22:59:44 +02:00
Add file attachments
This commit is contained in:
parent
87a3cf751a
commit
f743f4ea8b
103 changed files with 1847 additions and 305 deletions
17
server/api/helpers/get-attachments-for-card.js
Normal file
17
server/api/helpers/get-attachments-for-card.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
module.exports = {
|
||||
inputs: {
|
||||
id: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isString(value) || _.isArray(value),
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
const attachments = await sails.helpers.getAttachments({
|
||||
cardId: inputs.id,
|
||||
});
|
||||
|
||||
return exits.success(attachments);
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue