This commit is contained in:
hamid zarghami
2025-09-18 13:20:16 +03:30
parent 7b51a18a4a
commit 4ed55bd1b7
13 changed files with 308 additions and 87 deletions
+17
View File
@@ -0,0 +1,17 @@
import axios from "@/config/axios";
import { CompareResponse } from "../types/Types";
export const getCompare = async (
productIds: string[]
): Promise<CompareResponse> => {
const { data } = await axios.get(`/product/compare?productIds=${productIds}`);
return data;
};
export const searchComparProduct = async (productId?: string) => {
const { data } = await axios.get(
`/product/compare/search?productId=${productId}`
);
return data;
};