forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

postTerm.ts12 lines, 288 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Term } from "../client";
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}