This commit is contained in:
Joyce
2026-02-05 13:45:32 -05:00
parent 7a0f11ee88
commit 26e553bfd0
10 changed files with 569 additions and 57 deletions

View File

@@ -115,3 +115,10 @@ export async function scheduleMeeting(
});
return handleResponse(response);
}
export async function clearAllBookings(): Promise<void> {
const response = await fetch(`${API_URL}/api/bookings`, { method: 'DELETE' });
if (!response.ok) {
throw new Error('Failed to clear bookings');
}
}