forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

getCourseById.ts6 lines, 215 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Course } from "./types";
3
4export function getCourseById(id: string, signal?: AbortSignal): Promise<Course> {
5 return client<Course>(`/courses/${id}`, { signal });
6}