http method fix
This commit is contained in:
parent
fa92c325dd
commit
9dd77fe0bf
6 changed files with 13 additions and 5 deletions
|
|
@ -512,7 +512,7 @@ export default (params: ClientParams) => ({
|
|||
const auth = await params.retrieveUserAuth()
|
||||
if (auth === null) throw new Error('retrieveUserAuth() returned null')
|
||||
let finalRoute = '/api/user/offer/get'
|
||||
const { data } = await axios.get(params.baseUrl + finalRoute, { headers: { 'authorization': auth } })
|
||||
const { data } = await axios.post(params.baseUrl + finalRoute, request, { headers: { 'authorization': auth } })
|
||||
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
||||
if (data.status === 'OK') {
|
||||
const result = data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue