forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postSchool.ts14 lines, 382 bytesHistoryRawDownload
1import { client } from "../client";
2import type { School } from "../client";
3
4export type CreateSchoolBody = {
5 name: string;
6 admin_username: string;
7 admin_password: string;
8 /** Omitted sells the whole catalog. */
9 modules?: string[];
10};
11
12export function postSchool(body: CreateSchoolBody): Promise<School> {
13 return client<School>("/schools", { method: "POST", body });
14}