refactor: API 클라이언트 레거시 export 삭제

마이그레이션 완료로 더 이상 사용되지 않는 개별 export 제거
- get, post, put, del
- authGet, authPost, authPut, authDel

현재 방식: api.get(), authApi.post() 등

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-01-23 13:35:33 +09:00
parent a151694630
commit bd7fbea082
2 changed files with 2 additions and 12 deletions

View file

@ -150,8 +150,8 @@ export const authDel = authApi.del;
| 1 | ~~JWT Secret 기본값 제거~~ | `config/index.js` | ✅ 완료 |
| 2 | ~~앨범 삭제 시 관련 테이블 정리~~ | `services/album.js` | ✅ 완료 |
| 3 | ~~에러 유틸리티 통일~~ | 라우트 파일들 | ✅ 완료 |
| 4 | App.jsx 라우트 분리 | `App.jsx` | 미완료 |
| 5 | 레거시 export 정리 | `api/client.js` | 미완료 |
| 4 | ~~App.jsx 라우트 분리~~ | `App.jsx` | ✅ 완료 |
| 5 | ~~레거시 export 정리~~ | `api/client.js` | ✅ 완료 |
| 6 | ~~Meilisearch 버전 업데이트~~ | `docker-compose.yml` | ✅ 완료 |
| 7 | 테스트 코드 작성 | 전체 | 미완료 |

View file

@ -143,13 +143,3 @@ export const api = createMethodHelpers(fetchApi);
* @example authApi.get('/admin/stats'), authApi.post('/admin/schedules', data)
*/
export const authApi = createMethodHelpers(fetchAuthApi);
// 기존 호환성을 위한 개별 export (점진적 마이그레이션 후 삭제 예정)
export const get = api.get;
export const post = api.post;
export const put = api.put;
export const del = api.del;
export const authGet = authApi.get;
export const authPost = authApi.post;
export const authPut = authApi.put;
export const authDel = authApi.del;