http method fix

This commit is contained in:
boufni95 2024-12-06 16:53:34 +00:00
parent fa92c325dd
commit 9dd77fe0bf
6 changed files with 13 additions and 5 deletions

View file

@ -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