chane url
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
VITE_TOKEN_NAME = 'negareh_t'
|
VITE_TOKEN_NAME = 'negareh_t'
|
||||||
VITE_REFRESH_TOKEN_NAME = 'negareh_rt'
|
VITE_REFRESH_TOKEN_NAME = 'negareh_rt'
|
||||||
VITE_API_BASE_URL = 'https://negareh-api.dev.danakcorp.com'
|
VITE_API_BASE_URL = 'https://negareh-api.dev.danakcorp.com'
|
||||||
|
# VITE_API_BASE_URL = 'http://10.164.213.88:4000'
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const getAttributes = async (productId?: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const submitOrder = async (params: OrderType[]) => {
|
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;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ export const getMyOrders = async (
|
|||||||
query += `&statuses=${statuses}`;
|
query += `&statuses=${statuses}`;
|
||||||
}
|
}
|
||||||
const { data } = await axios.get<MyOrdersResponseType>(
|
const { data } = await axios.get<MyOrdersResponseType>(
|
||||||
`/public/orders${query}`,
|
`/public/request${query}`,
|
||||||
);
|
);
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user