This implements the actual call to the API to create a booking. That’s the only thing it does, it doesn’t handle the response in any way. This PR is just to get it there and the new booking sub team will handle it further, with payment etc. Approved-by: Michael Zetterberg Approved-by: Fredrik Thorsson Approved-by: Simon.Emanuelsson
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
/** Routers */
|
|
import { bookingRouter } from "./routers/booking"
|
|
import { contentstackRouter } from "./routers/contentstack"
|
|
import { hotelsRouter } from "./routers/hotels"
|
|
import { userRouter } from "./routers/user"
|
|
import { router } from "./trpc"
|
|
|
|
export const appRouter = router({
|
|
booking: bookingRouter,
|
|
contentstack: contentstackRouter,
|
|
hotel: hotelsRouter,
|
|
user: userRouter,
|
|
})
|
|
|
|
export type AppRouter = typeof appRouter
|