mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
21 lines
583 B
TypeScript
21 lines
583 B
TypeScript
// export default function noopApi(...args: any[]): void {}
|
|
|
|
import { GetAPISchema, createEndpoint } from '@commerce/api'
|
|
import loginEndpoint from '@commerce/api/endpoints/login'
|
|
import type { LoginSchema } from '../../../types/login'
|
|
import type { KiboCommerceAPI } from '../..'
|
|
import login from './login'
|
|
|
|
export type LoginAPI = GetAPISchema<KiboCommerceAPI, LoginSchema>
|
|
|
|
export type LoginEndpoint = LoginAPI['endpoint']
|
|
|
|
export const handlers: LoginEndpoint['handlers'] = { login }
|
|
|
|
export const loginApi = createEndpoint<LoginAPI>({
|
|
handler: loginEndpoint,
|
|
handlers,
|
|
})
|
|
|
|
|