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 { PersonRef } from "../client"; |
| 3 | |
| 4 | export interface ParentLinkResponse { |
| 5 | parent: PersonRef; |
| 6 | student: PersonRef; |
| 7 | linked_by: PersonRef; |
| 8 | } |
| 9 | |
| 10 | export async function postParentStudent(id: string, user_id: string): Promise<ParentLinkResponse> { |
| 11 | return client(`/users/${id}/students`, { |
| 12 | method: "POST", |
| 13 | body: { user_id }, |
| 14 | }); |
| 15 | } |