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 { Subject } from "../client"; |
| 3 | |
| 4 | // Selects a topic for the section's own set — the set becomes the section's |
| 5 | // own (not the offering's) from this call on. |
| 6 | export function postInstanceSubject(id: string, subjectId: string): Promise<Subject> { |
| 7 | return client<Subject>(`/instances/${id}/subjects`, { method: "POST", body: { subject: subjectId } }); |
| 8 | } |