blob: 617d139da1aad25ddd6146f9749bdeaa0b52b044 (
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 createOrDeleteWishlistApi = async ({ data }) => {
const auth = getAuth()
const dataWishlist = await odooApi(
'POST',
`/api/v1/user/${auth.id}/wishlist/create-or-delete`,
data
)
return dataWishlist
}
export default createOrDeleteWishlistApi
|