Update global-methods.js

This commit is contained in:
hiteshkumar87 2024-02-05 20:52:05 +05:30
parent ac687e5545
commit 80044b34c7

View file

@ -22,13 +22,9 @@ export default {
const headers = { const headers = {
[headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings), [headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings),
}; };
const localhostserviceapi = "https://localhost:44317";
axios({ axios({
method: method, method: method,
url: url: cfDistroUrl + endpoint,
(endpoint == "/schedule/api/v1/schedule/mobile-time-slots"
? localhostserviceapi
: cfDistroUrl) + endpoint,
data: payloadAndAnalyticsData, data: payloadAndAnalyticsData,
crossDomain: true, crossDomain: true,
responseType: {}, responseType: {},