INIT
This commit is contained in:
21
frontend/src/lib/api/index.ts
Normal file
21
frontend/src/lib/api/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* API 모듈 통합 Export
|
||||
*
|
||||
* @description
|
||||
* 모든 API 함수를 중앙에서 관리하고 export합니다.
|
||||
* 한 곳에서 내보내기 다른 파일에서 @/lib/api로 import하면 자동으로 index.ts를 통해 관리
|
||||
*
|
||||
* @example
|
||||
* import { cowApi, authApi } from '@/lib/api';
|
||||
*/
|
||||
|
||||
export { authApi } from './auth.api'; // 인증 API
|
||||
export { cowApi } from './cow.api';
|
||||
export { dashboardApi } from './dashboard.api';
|
||||
export { farmApi } from './farm.api';
|
||||
export { genomeApi, type ComparisonAveragesDto, type CategoryAverageDto, type FarmTraitComparisonDto, type TraitComparisonAveragesDto, type TraitAverageDto } from './genome.api';
|
||||
export { reproApi } from './repro.api';
|
||||
export { breedApi } from './breed.api';
|
||||
|
||||
// API 클라이언트도 export (필요 시 직접 사용 가능)
|
||||
export { default as apiClient } from '../api-client';
|
||||
Reference in New Issue
Block a user