/** * Central HTTP client for this MFE. * * All API calls go through this client — never call axios directly from * components or hooks. The host injects auth, regional headers, and other * cross-cutting concerns via XHR-level interceptors automatically. * * Usage: * import { api } from "./api" * * export const orderService = { * create: (payload: OrderPayload) => api.post("/orders", payload), * cancel: (id: string) => api.delete(`/orders/${id}`), * } */ import { createApiClient } from "@chrisluyi/template/runtime" export const api = createApiClient({ baseURL: "/api", timeout: 10_000, })