diff --git a/src/api/tariff.ts b/src/api/tariff.ts index a4f9e3e..bb704cb 100644 --- a/src/api/tariff.ts +++ b/src/api/tariff.ts @@ -26,7 +26,7 @@ export const getTariffs = async ( try { const tariffsResponse = await makeRequest({ method: "GET", - url: `${API_URL}/tariff?page=${apiPage}&limit=${tariffsPerPage}`, + url: `${API_URL}/tariff/getList?page=${apiPage}&limit=${tariffsPerPage}`, useToken: true, signal, }); diff --git a/src/components/ProtectedLayout.tsx b/src/components/ProtectedLayout.tsx index 7ba6a7e..444b1d4 100644 --- a/src/components/ProtectedLayout.tsx +++ b/src/components/ProtectedLayout.tsx @@ -63,6 +63,7 @@ export default function ProtectedLayout() { }); useAllTariffsFetcher({ + baseUrl: process.env.REACT_APP_DOMAIN + "/strator/tariff/getList", onSuccess: updateTariffs, onError: (error) => { const errorMessage = getMessageFromFetchError(error);