From edb8c99af3713b2d4d5d486088ac63c340e11354 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 17 Oct 2018 14:28:40 -0400 Subject: [PATCH] Send params in data --- embark-ui/src/services/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embark-ui/src/services/api.js b/embark-ui/src/services/api.js index 729d9c3c..9863313e 100644 --- a/embark-ui/src/services/api.js +++ b/embark-ui/src/services/api.js @@ -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) => {