mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
19 lines
568 B
TypeScript
19 lines
568 B
TypeScript
import { GetAPISchema, createEndpoint } from '@commerce/api'
|
|
import signupEndpoint from '@commerce/api/endpoints/signup'
|
|
import type { SignupSchema } from '../../../../commerce/types/signup'
|
|
import type { ElasticpathAPI } from '../..'
|
|
import signup from './signup'
|
|
|
|
export type SignupAPI = GetAPISchema<ElasticpathAPI, SignupSchema>
|
|
|
|
export type SignupEndpoint = SignupAPI['endpoint']
|
|
|
|
export const handlers: SignupEndpoint['handlers'] = { signup }
|
|
|
|
const signupApi = createEndpoint<SignupAPI>({
|
|
handler: signupEndpoint,
|
|
handlers,
|
|
})
|
|
|
|
export default signupApi
|