chane url

This commit is contained in:
hamid zarghami
2026-02-19 12:19:21 +03:30
parent 811637f075
commit 4b1788a80c
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
VITE_TOKEN_NAME = 'negareh_t'
VITE_REFRESH_TOKEN_NAME = 'negareh_rt'
VITE_API_BASE_URL = 'https://negareh-api.dev.danakcorp.com'
# VITE_API_BASE_URL = 'http://10.164.213.88:4000'
+2 -2
View File
@@ -23,7 +23,7 @@ export const getAttributes = async (productId?: string) => {
};
export const submitOrder = async (params: OrderType[]) => {
const { data } = await axios.post(`/public/orders`, { items: params });
const { data } = await axios.post(`/public/request`, { items: params });
return data;
};
@@ -55,7 +55,7 @@ export const getMyOrders = async (
query += `&statuses=${statuses}`;
}
const { data } = await axios.get<MyOrdersResponseType>(
`/public/orders${query}`,
`/public/request${query}`,
);
return data;
};