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