import api from "@/lib/api"; import type { Content, PaginatedResponse } from "@/types/content"; export const FavoriteService = { async add(contentId: string): Promise { await api.post(`/favorites/${contentId}`); }, async remove(contentId: string): Promise { await api.delete(`/favorites/${contentId}`); }, async list(params: { limit: number; offset: number; }): Promise> { const { data } = await api.get>( "/contents/explore", { params: { ...params, favoritesOnly: true, }, }, ); return data; }, };