forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postTerm.ts12 lines, 285 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Term } from "./types";
3
4export type PostTermBody = {
5 name: string;
6 starts_at: number;
7 ends_at: number;
8};
9
10export function postTerm(body: PostTermBody): Promise<Term> {
11 return client<Term>("/terms", { method: "POST", body });
12}