forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

patchUserProfile.ts6 lines, 275 bytesHistoryRawDownload
1import { client } from "@/api/client";
2import type { ProfileUpdate, User } from "@/api/types";
3
4export function patchUserProfile(id: string, body: ProfileUpdate): Promise<User> {
5 return client<User>(`/users/${encodeURIComponent(id)}/profile`, { method: "PATCH", body });
6}