CSR-752 remove localhost
This commit is contained in:
parent
644bfebe22
commit
180fdb3e7d
1 changed files with 1 additions and 5 deletions
|
|
@ -9,16 +9,12 @@ import { headerKeys } from "@/constants/header-keys";
|
||||||
export default {
|
export default {
|
||||||
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
|
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
||||||
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
|
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings)
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endpoint.toLowerCase().includes("/order/")){
|
|
||||||
cfDistroUrl = "https://localhost:44346";
|
|
||||||
}
|
|
||||||
|
|
||||||
axios({ method: method, url: cfDistroUrl + endpoint, data: payloadAndAnalyticsData, crossDomain: true, responseType: {}, headers: headers })
|
axios({ method: method, url: cfDistroUrl + endpoint, data: payloadAndAnalyticsData, crossDomain: true, responseType: {}, headers: headers })
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue