11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import * as fetch from "@lib/core/http/fetch-wrapper";
|
|
import type { BookingCreateBody, BookingResponse } from "@lib/types/booking";
|
|
|
|
const createBooking = async (data: BookingCreateBody) => {
|
|
const response = await fetch.post<BookingCreateBody, BookingResponse>("/api/book/event", data);
|
|
|
|
return response;
|
|
};
|
|
|
|
export default createBooking;
|