update
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user