submit order base

This commit is contained in:
hamid zarghami
2026-01-27 11:16:46 +03:30
parent bc58e6b564
commit 1f33fa7a7f
8 changed files with 94 additions and 34 deletions
+1 -1
View File
@@ -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;
};