forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postAppointment.ts11 lines, 315 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Appointment } from "../client";
3
4export type BookAppointmentBody = {
5 slot: string;
6 reason: string;
7};
8
9export function postAppointment(body: BookAppointmentBody): Promise<Appointment> {
10 return client<Appointment>("/appointments", { method: "POST", body });
11}