hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Event, EventAudience } from "../client"; |
| 3 | |
| 4 | export type PostEventBody = { |
| 5 | title: string; |
| 6 | description?: string | null; |
| 7 | audience?: EventAudience | null; |
| 8 | starts_at?: number | null; |
| 9 | ends_at?: number | null; |
| 10 | }; |
| 11 | |
| 12 | export function postEvent(body: PostEventBody): Promise<Event> { |
| 13 | return client<Event>("/events", { method: "POST", body }); |
| 14 | } |