mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
import type { Provider, SwellAPI } from '..'
|
|
|
|
import createEndpoints from '@vercel/commerce/api/endpoints'
|
|
import checkout from './checkout'
|
|
|
|
const endpoints = {
|
|
checkout,
|
|
}
|
|
|
|
export default function handler(commerce: SwellAPI) {
|
|
return createEndpoints<Provider>(commerce, endpoints)
|
|
}
|