mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
- Create constants.ts for RECORD_A_MEETING_URL - Add api-types.ts for backward compatible type exports - Update all imports from deleted api folder to new locations - Add missing React Query hooks for rooms and zulip operations - Create useApi compatibility layer for unmigrated components
14 lines
420 B
TypeScript
14 lines
420 B
TypeScript
// Compatibility layer for direct API client usage
|
|
// Prefer using React Query hooks from api-hooks.ts instead
|
|
|
|
import { client } from "./apiClient";
|
|
|
|
// Returns the configured client for direct API calls
|
|
// This is a minimal compatibility layer for components that haven't been fully migrated
|
|
export default function useApi() {
|
|
return client;
|
|
}
|
|
|
|
// Export the client directly for non-hook contexts
|
|
export { client };
|