
* Adds Stripe integration * Moves Stripe instrucctions to ee * Adds NEXT_PUBLIC_APP_URL variable * Adds fallback for NEXT_PUBLIC_APP_URL * Throws error objects instead * Improved error handling * Removes deprecated method * Bug fixing * Payment refactoring * PaymentPage fixes * Fixes preview links * More preview link fixes * Fixes client links Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com>
10 lines
340 B
TypeScript
10 lines
340 B
TypeScript
import * as fetch from "@lib/core/http/fetch-wrapper";
|
|
import { 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;
|