hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits
| 1 | import { client } from "../client"; |
| 2 | import { normalizePage, type Page } from "../client"; |
| 3 | import type { Course } from "../client"; |
| 4 | import { courseListQuery, type CourseListParams } from "../courses/getCourses"; |
| 5 | |
| 6 | export async function getMyCourses(params?: CourseListParams, signal?: AbortSignal): Promise<Page<Course>> { |
| 7 | const data = await client<unknown>(`/courses/me${courseListQuery(params)}`, { signal }); |
| 8 | return normalizePage<Course>(data); |
| 9 | } |