CSR-803: merge

This commit is contained in:
Adam Caouette 2022-10-31 14:25:13 -04:00
parent 81a45cb730
commit 4324f0ee5f

View file

@ -7,6 +7,7 @@ import { GaCategories, GaActions, GaLabels } from "@/constants/analytics";
import { headerKeys } from "@/constants/header-keys";
export default {
<<<<<<< Updated upstream
callHttpClient({ method, endpoint, payload, logApiCall = true }) {
return new Promise((resolve, reject) => {
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
@ -14,6 +15,21 @@ export default {
const headers = {
[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({
method: method,