parent
f743417e01
commit
c691f06ef8
9 changed files with 3260 additions and 1565 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,16 @@ |
||||
import axios from 'axios'; |
||||
|
||||
axios.defaults.headers.post['Content-Type'] = 'application/json'; |
||||
axios.defaults.headers.post['Accept'] = 'application/json'; |
||||
|
||||
export const api = { |
||||
uploadImage: (imageData, accessToken) => { |
||||
return axios.post('/api/v1/image-objects/', { |
||||
image: imageData, |
||||
}, { |
||||
headers: { |
||||
'Authorization': `Token ${accessToken}`, |
||||
} |
||||
}); |
||||
} |
||||
}; |
||||
Loading…
Reference in new issue