hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; |
| 3 | import type { ClassCourse } from "../client"; |
| 4 | |
| 5 | export async function getClassCourses(classId: string, params?: PageParams, signal?: AbortSignal): Promise<Page<ClassCourse>> { |
| 6 | const data = await client<unknown>(`/classes/${classId}/courses${pageQuery(params)}`, { signal }); |
| 7 | return normalizePage<ClassCourse>(data); |
| 8 | } |