parent
a69a6f0c45
commit
d776bc8d10
@ -1,13 +1,3 @@ |
||||
import makeService from './api'; |
||||
import axios from "axios" |
||||
import makeService from "./api" |
||||
|
||||
export default makeService('social_posts', { |
||||
async addPostAttachment(formData) { |
||||
const endpoint = "/api/social_post_attachments" |
||||
return await axios.post(endpoint, formData, { |
||||
headers: { |
||||
"Content-Type": "multipart/form-data", |
||||
}, |
||||
}) |
||||
} |
||||
}); |
||||
export default makeService("social_posts") |
||||
|
Loading…
Reference in new issue