chane url
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user