mirror of https://github.com/embarklabs/embark.git
Send params in data
This commit is contained in:
parent
eb412c026b
commit
edb8c99af3
|
@ -27,10 +27,11 @@ function request(type, path, params = {}) {
|
|||
headers: {
|
||||
'X-Embark-Request-Hash': requestHash,
|
||||
'X-Embark-Cnonce': cnonce
|
||||
}
|
||||
},
|
||||
data: params
|
||||
}
|
||||
|
||||
return axios(req, params)
|
||||
return axios(req)
|
||||
.then((response) => {
|
||||
return (response.data && response.data.error) ? {error: response.data.error} : {response, error: null};
|
||||
}).catch((error) => {
|
||||
|
|
Loading…
Reference in New Issue