import api from "@/lib/api"; import type { User } from "@/types/user"; export const UserService = { async getMe(): Promise { const { data } = await api.get("/users/me"); return data; }, async getProfile(username: string): Promise { const { data } = await api.get(`/users/public/${username}`); return data; }, async updateMe(update: Partial): Promise { const { data } = await api.patch("/users/me", update); return data; }, };