Files
baya-monorepo/client/src/services/admin/apis/index.ts
T
2026-07-10 20:28:06 +03:30

11 lines
481 B
TypeScript

import { USE_ADMIN_MOCK } from '../constants';
import type { AdminApi } from '../types';
import { adminClientApi } from './clientApi';
import { adminMockApi } from './mockApi';
/**
* The selected `AdminApi` implementation — the single seam the hooks import. Mock-primary this phase
* (REQ-029/030/031); flipping to the real client is this one line once the upstream endpoints/columns land.
*/
export const adminApi: AdminApi = USE_ADMIN_MOCK ? adminMockApi : adminClientApi;