Files
reflector/www/app/lib/useApi.ts
Mathieu Virbel 68c161ee7e fix: resolve import errors and add missing api hooks
- 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
2025-08-29 09:36:55 -06:00

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 };