product select component

This commit is contained in:
hamid zarghami
2026-01-25 14:50:32 +03:30
parent f09e8219b1
commit d7efa70023
9 changed files with 153 additions and 63 deletions
+7
View File
@@ -0,0 +1,7 @@
import axios from "@/config/axios";
import type { ProductsResponseType } from "../type/Types";
export const getProducts = async () => {
const { data } = await axios.get<ProductsResponseType>(`/public/products`);
return data;
};