hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Profile } from "../client"; |
| 3 | |
| 4 | // Any authenticated account may read any profile, except a parent, who reaches |
| 5 | // only their own and their linked students' (403 otherwise). |
| 6 | export function getUserProfile(id: string, signal?: AbortSignal): Promise<Profile> { |
| 7 | return client<Profile>(`/users/${encodeURIComponent(id)}/profile`, { signal }); |
| 8 | } |