product select component
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user