edit order

This commit is contained in:
hamid zarghami
2026-02-01 16:13:40 +03:30
parent 5c536667b1
commit 3d53661c9a
13 changed files with 631 additions and 10 deletions
+8
View File
@@ -43,6 +43,14 @@ export const submitOrder = async (params: CreateFinalOrderType) => {
return data;
};
export const updateOrder = async (
orderId: string,
params: CreateFinalOrderType
) => {
const { data } = await axios.patch(`/admin/orders/${orderId}`, params);
return data;
};
export const getProducts = async () => {
const { data } = await axios.get<ProductResponeType>(`/admin/products`);
return data;