`backend` 옆에 `front` 가 있을 이유가 없었다. negosium 의 negodata/front 를 그대로 베꼈고 그게 왜 front 인지는 따져보지 않았다 — 근거 없이 들여온 이름이라 바로잡는다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uYhHQdssRubirPirrdJJC
27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
/**
|
|
* API 단일 입구.
|
|
*
|
|
* 알맹이는 전부 `generated/` — 백엔드 OpenAPI 에서 orval 이 뽑은 React Query 훅과 모델이다.
|
|
* **손으로 고치지 않는다.** 백엔드가 바뀌면 재생성한다:
|
|
*
|
|
* ```bash
|
|
* npm run orval -w admin # 백엔드가 떠 있을 때
|
|
* ORVAL_INPUT=../../backend/openapi.json npm run orval -w admin # 서버 없이
|
|
* ```
|
|
*
|
|
* 이 파일이 하는 일은 재export 뿐이다 — 화면이 `@/api/generated/place/place` 같은
|
|
* 태그 경로를 외우지 않게. 태그가 늘면 여기 한 줄만 는다.
|
|
*/
|
|
export * from './generated/auth/auth';
|
|
export * from './generated/place/place';
|
|
export * from './generated/fact/fact';
|
|
export * from './generated/job/job';
|
|
export * from './generated/site/site';
|
|
export * from './generated/media/media';
|
|
export * from './generated/faq/faq';
|
|
export * from './generated/model';
|
|
|
|
// 잡 폴링(수집·비전·생성·빌드 공용). 생성물이 아니라 그 위에 얹은 얇은 유틸이다.
|
|
export * from './pollJob';
|
|
export {ApiError, getAccessToken, setTokens, clearTokens} from './mutator/custom-fetch';
|