mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 09:46:37 +00:00
use constant for the route
This commit is contained in:
parent
f57d4b0a66
commit
92c952c7d1
@ -66,13 +66,13 @@ export function webSocketBlockHeader() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function fetchContract(contractName) {
|
export function fetchContract(contractName) {
|
||||||
return axios.get('http://localhost:8000/embark-api/contract/' + contractName);
|
return axios.get(`${constants.httpEndpoint}/contract/${contractName}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetchContracts() {
|
export function fetchContracts() {
|
||||||
return axios.get('http://localhost:8000/embark-api/contracts');
|
return axios.get(`${constants.httpEndpoint}/contracts`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetchContractProfile(contractName) {
|
export function fetchContractProfile(contractName) {
|
||||||
return axios.get('http://localhost:8000/embark-api/profiler/' + contractName);
|
return axios.get(`${constants.httpEndpoint}/profiler/${contractName}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user