CSR-803: merge
This commit is contained in:
parent
81a45cb730
commit
4324f0ee5f
1 changed files with 16 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import { GaCategories, GaActions, GaLabels } from "@/constants/analytics";
|
||||||
import { headerKeys } from "@/constants/header-keys";
|
import { headerKeys } from "@/constants/header-keys";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
<<<<<<< Updated upstream
|
||||||
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
|
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
||||||
|
|
@ -14,6 +15,21 @@ export default {
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings),
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings),
|
||||||
};
|
};
|
||||||
|
=======
|
||||||
|
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
|
||||||
|
if (endpoint.includes("/order/")) {
|
||||||
|
cfDistroUrl = "https://localhost:5001";
|
||||||
|
}
|
||||||
|
if (endpoint.includes("/parts/")) {
|
||||||
|
cfDistroUrl = "https://localhost:5003";
|
||||||
|
}
|
||||||
|
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "FixMyGlass" });
|
||||||
|
const headers = {
|
||||||
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings)
|
||||||
|
}
|
||||||
|
>>>>>>> Stashed changes
|
||||||
|
|
||||||
axios({
|
axios({
|
||||||
method: method,
|
method: method,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue