12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
import { get, post } from '../request'
|
|
|
|
const prefix = 'favorite/'
|
|
|
|
export const getFavoriteListApi = async () => {
|
|
return await get(`${prefix}list`)
|
|
}
|
|
|
|
export const toggleFavoriteApi = async (catalogueId) => {
|
|
return await post(`${prefix}toggle`, { catalogue_id: catalogueId })
|
|
}
|