hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { CourseMembership } from "../client"; |
| 3 | |
| 4 | /** |
| 5 | * Only students, and only into a `study` (etüt) or `club` (kulüp): a regular |
| 6 | * ders has no school-wide roster — its students come from the şube. |
| 7 | */ |
| 8 | export function postCourseMember(courseId: string, userId: string): Promise<CourseMembership> { |
| 9 | return client<CourseMembership>(`/courses/${courseId}/members`, { |
| 10 | method: "POST", |
| 11 | body: { user_id: userId }, |
| 12 | }); |
| 13 | } |