From 92c952c7d143a6fea50d07824778ca2d47ad8a41 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 6 Aug 2018 11:40:32 -0400 Subject: [PATCH] use constant for the route --- embark-ui/src/api/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embark-ui/src/api/index.js b/embark-ui/src/api/index.js index ef3ddaf17..3a97e3e04 100644 --- a/embark-ui/src/api/index.js +++ b/embark-ui/src/api/index.js @@ -66,13 +66,13 @@ export function webSocketBlockHeader() { } export function fetchContract(contractName) { - return axios.get('http://localhost:8000/embark-api/contract/' + contractName); + return axios.get(`${constants.httpEndpoint}/contract/${contractName}`); } export function fetchContracts() { - return axios.get('http://localhost:8000/embark-api/contracts'); + return axios.get(`${constants.httpEndpoint}/contracts`); } export function fetchContractProfile(contractName) { - return axios.get('http://localhost:8000/embark-api/profiler/' + contractName); + return axios.get(`${constants.httpEndpoint}/profiler/${contractName}`); }