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 { Enrollment } from "../client"; |
| 3 | |
| 4 | /** |
| 5 | * Idempotent upsert; students only. The row is hand-placed (`source` null), so |
| 6 | * no şube sweep takes it back. |
| 7 | */ |
| 8 | export function postInstanceEnrollment(instanceId: string, userId: string): Promise<Enrollment> { |
| 9 | return client<Enrollment>(`/instances/${instanceId}/enrollments`, { |
| 10 | method: "POST", |
| 11 | body: { user_id: userId }, |
| 12 | }); |
| 13 | } |