diff --git a/src/api/cart.ts b/src/api/cart.ts index 30e2490..ed136e4 100644 --- a/src/api/cart.ts +++ b/src/api/cart.ts @@ -3,7 +3,7 @@ import makeRequest from "@api/makeRequest"; import { parseAxiosError } from "@root/utils/parse-error"; -const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`; +const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`; export const patchCart = async ( tariffId: string diff --git a/src/api/history.ts b/src/api/history.ts index 6e21f69..d44846f 100644 --- a/src/api/history.ts +++ b/src/api/history.ts @@ -44,7 +44,7 @@ export type RawDetails = { Value: string | number | KeyValue[][]; }; -const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`; +const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`; export const getHistory = async (): Promise< [GetHistoryResponse | GetHistoryResponse2 | null, string?] diff --git a/src/api/recentlyPurchasedTariffs.ts b/src/api/recentlyPurchasedTariffs.ts index ac3b052..d154faa 100644 --- a/src/api/recentlyPurchasedTariffs.ts +++ b/src/api/recentlyPurchasedTariffs.ts @@ -1,7 +1,7 @@ import makeRequest from "@api/makeRequest"; import { parseAxiosError } from "@root/utils/parse-error"; -const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`; +const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`; type GetRecentlyPurchasedTariffsResponse = { id: string; diff --git a/src/api/wallet.ts b/src/api/wallet.ts index 1cb3745..dd25e4b 100644 --- a/src/api/wallet.ts +++ b/src/api/wallet.ts @@ -7,7 +7,7 @@ const isStaging = (() => { return host.includes("s") ? "s" : ""; })(); -const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`; +const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`; interface PaymentBody { type: string; diff --git a/src/index.tsx b/src/index.tsx index 0c8efc9..992b2d2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -82,7 +82,7 @@ const App = () => { }); useUserAccountFetcher({ - url: process.env.REACT_APP_DOMAIN + "/customer/account", + url: process.env.REACT_APP_DOMAIN + "/customer/v1.0.0/account", userId, onNewUserAccount: setUserAccount, onError: (error) => {