single order

This commit is contained in:
hamid zarghami
2026-01-27 08:45:42 +03:30
parent 155e1e0b20
commit bc58e6b564
10 changed files with 161 additions and 36 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
import axios from "@/config/axios";
import type { ProductsResponseType } from "../type/Types";
import type { OrderType, ProductsResponseType } from "../type/Types";
export const getProducts = async () => {
const { data } = await axios.get<ProductsResponseType>(`/public/products`);
return data;
};
export const submitOrder = async (params: OrderType[]) => {
const { data } = await axios.post(`/public/order`, params);
return data;
};