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 export type LoginEndpoint = LoginAPI['endpoint'] export const handlers: LoginEndpoint['handlers'] = { login } const loginApi = createEndpoint({ handler: loginEndpoint, handlers, }) export default loginApi;