hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { MealBooking } from "../client"; |
| 3 | |
| 4 | export function postMealBooking(menuId: string, studentId?: string): Promise<MealBooking> { |
| 5 | return client<MealBooking>(`/meals/menus/${encodeURIComponent(menuId)}/bookings`, { |
| 6 | method: "POST", |
| 7 | body: studentId ? { student_id: studentId } : {}, |
| 8 | }); |
| 9 | } |