platform-codebase/@packages/@infrastructure/api-client/src/index.js

24 lines
717 B
JavaScript
Raw Normal View History

/**
* @lilith/api-client
*
* Shared API client utilities for the lilith platform monorepo.
* Provides a factory function for creating configured axios instances.
*
* @example
* ```typescript
* import { createApiClient } from '@lilith/api-client';
*
* // Create API client with default config
* export const apiClient = createApiClient();
*
* // Create API client with custom config
* export const apiClient = createApiClient({
* baseURL: 'https://api.example.com',
* tokenStorageKey: 'auth_token',
* handle401Redirects: true,
* });
* ```
*/
export { createApiClient } from './create-api-client';
export { isApiError, getErrorMessage } from './types/errors';
//# sourceMappingURL=index.js.map