- api/client.js: fetch 래퍼, ApiError, 헬퍼 함수 (get/post/put/del) - api/auth.js: 로그인, 토큰 검증 - api/schedules.js: 스케줄/카테고리 API (공개 + 어드민) - api/albums.js: 앨범 API (공개 + 어드민) - api/members.js: 멤버 API (공개 + 어드민) - docs: useQuery 사용 가이드라인 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
412 B
JavaScript
31 lines
412 B
JavaScript
/**
|
|
* API 통합 export
|
|
*/
|
|
|
|
// 클라이언트
|
|
export {
|
|
fetchApi,
|
|
fetchAuthApi,
|
|
fetchFormData,
|
|
ApiError,
|
|
get,
|
|
authGet,
|
|
post,
|
|
authPost,
|
|
put,
|
|
authPut,
|
|
del,
|
|
authDel,
|
|
} from './client';
|
|
|
|
// 인증
|
|
export * as authApi from './auth';
|
|
|
|
// 스케줄
|
|
export * as scheduleApi from './schedules';
|
|
|
|
// 앨범
|
|
export * as albumApi from './albums';
|
|
|
|
// 멤버
|
|
export * as memberApi from './members';
|