submit order base
This commit is contained in:
@@ -7,6 +7,6 @@ export const getProducts = async () => {
|
||||
};
|
||||
|
||||
export const submitOrder = async (params: OrderType[]) => {
|
||||
const { data } = await axios.post(`/public/order`, params);
|
||||
const { data } = await axios.post(`/public/order`, { items: params });
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user