blob: a8906dd4aedd363c8ffe3108ba4f46a68b1b59ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import odooApi from '@/core/api/odooApi'
import { getAuth } from '@/core/utils/auth'
const wishlistApi = async ({ productId }) => {
const auth = getAuth()
if (!auth) return { productTotal: 0, products: [] }
const dataWishlist = await odooApi(
'GET',
`/api/v1/user/${auth.id}/wishlist?product_id=${productId}`
)
return dataWishlist
}
export default wishlistApi
|