committed by
Julius Härtl
parent
7750621917
commit
1e3ff41cb2
@@ -38,16 +38,12 @@ export class AttachmentApi {
|
||||
}
|
||||
|
||||
async createAttachment({ cardId, formData }) {
|
||||
try {
|
||||
const response = await axios({
|
||||
method: 'POST',
|
||||
url: this.url(`/cards/${cardId}/attachment`),
|
||||
data: formData,
|
||||
})
|
||||
return response.data
|
||||
} catch (e) {
|
||||
throw e
|
||||
}
|
||||
const response = await axios({
|
||||
method: 'POST',
|
||||
url: this.url(`/cards/${cardId}/attachment`),
|
||||
data: formData,
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
async deleteAttachment(attachment) {
|
||||
|
||||
Reference in New Issue
Block a user