From bd7fbea08295df5a0f256698bfc85818af29b29c Mon Sep 17 00:00:00 2001 From: caadiq Date: Fri, 23 Jan 2026 13:35:33 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20API=20=ED=81=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EC=96=B8=ED=8A=B8=20=EB=A0=88=EA=B1=B0=EC=8B=9C=20export=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 마이그레이션 완료로 더 이상 사용되지 않는 개별 export 제거 - get, post, put, del - authGet, authPost, authPut, authDel 현재 방식: api.get(), authApi.post() 등 Co-Authored-By: Claude Opus 4.5 --- docs/code-review.md | 4 ++-- frontend/src/api/client.js | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/code-review.md b/docs/code-review.md index 0d664d2..6327f5d 100644 --- a/docs/code-review.md +++ b/docs/code-review.md @@ -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 | 테스트 코드 작성 | 전체 | 미완료 | diff --git a/frontend/src/api/client.js b/frontend/src/api/client.js index 4110687..3144f8d 100644 --- a/frontend/src/api/client.js +++ b/frontend/src/api/client.js @@ -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;