first commit
This commit is contained in:
11
apps/suman-bosna/src/app/ucp/v1/checkout-sessions/route.ts
Normal file
11
apps/suman-bosna/src/app/ucp/v1/checkout-sessions/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createCheckout } from "@lib/ucp/operations"
|
||||
import { readJsonBody, toResponse } from "@lib/ucp/ucp"
|
||||
|
||||
export const POST = async (request: Request) =>
|
||||
toResponse(
|
||||
await createCheckout(
|
||||
request,
|
||||
(await readJsonBody(request)) ?? {},
|
||||
request.headers.get("idempotency-key")
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user