committed by
Julius Härtl
parent
1e3ff41cb2
commit
725f99d8b8
@@ -38,7 +38,7 @@ export class AttachmentApi {
|
||||
}
|
||||
|
||||
async createAttachment({ cardId, formData }) {
|
||||
const response = await axios({
|
||||
const response = await axios({
|
||||
method: 'POST',
|
||||
url: this.url(`/cards/${cardId}/attachment`),
|
||||
data: formData,
|
||||
@@ -46,6 +46,15 @@ export class AttachmentApi {
|
||||
return response.data
|
||||
}
|
||||
|
||||
async updateAttachment({ cardId, attachmentId, formData }) {
|
||||
const response = await axios({
|
||||
method: 'PUT',
|
||||
url: this.url(`/cards/${cardId}/attachment/${attachmentId}`),
|
||||
data: formData,
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
async deleteAttachment(attachment) {
|
||||
await axios({
|
||||
method: 'DELETE',
|
||||
|
||||
Reference in New Issue
Block a user