forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits

deleteSchoolModule.ts8 lines, 317 bytesHistoryRawDownload
1import { client } from "../client";
2import type { SchoolModules } from "../client";
3
4export function deleteSchoolModule(slug: string, module: string): Promise<SchoolModules> {
5 return client<SchoolModules>(`/schools/${encodeURIComponent(slug)}/modules/${encodeURIComponent(module)}`, {
6 method: "DELETE",
7 });
8}