12 lines
364 B
TypeScript
12 lines
364 B
TypeScript
import { post } from "@calcom/lib/fetch-wrapper";
|
|
|
|
import type { RecurringBookingCreateBody, BookingResponse } from "../types";
|
|
|
|
export const createRecurringBooking = async (data: RecurringBookingCreateBody[]) => {
|
|
const response = await post<RecurringBookingCreateBody[], BookingResponse[]>(
|
|
"/api/book/recurring-event",
|
|
data
|
|
);
|
|
return response;
|
|
};
|