import { api } from "src/boot/axios"; import type { Preferences } from "src/modules/profile/models/preferences.models"; import type { BackendResponse } from "src/modules/shared/models/backend-response.models"; export const ProfileService = { getUserPreferences: async (): Promise> => { const response = await api.get>(`/preferences`); return response.data; }, updateUserPreferences: async (new_preferences: Preferences): Promise> => { const response = await api.patch>(`/preferences/update`, new_preferences); return response.data; }, };