forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postEventRegister.ts13 lines, 374 bytesHistoryRawDownload
1import { client } from "../client";
2import type { EventRegistration } from "../client";
3
4export type PostEventRegisterBody = {
5 user_id?: string | null;
6};
7
8export function postEventRegister(eventId: string, body: PostEventRegisterBody): Promise<EventRegistration> {
9 return client<EventRegistration>(`/events/${eventId}/register`, {
10 method: "POST",
11 body,
12 });
13}