refactor(api): introduce defineApi + axios request layer

Replace ad-hoc fetch httpClient with api/request.ts (axios interceptors,
envelope unwrap, auth refresh) and defineApi-based resource modules.
Move session hydration into api/auth, sync both templates, and update docs.

Co-authored-by: zuiidea <zuiiidea@gmail.com>
This commit is contained in:
Cursor Agent
2026-10-18 03:48:28 +00:00
co-authored by zuiidea
parent 60ef2fe7f8
commit 8ab7ade30b
36 changed files with 1169 additions and 585 deletions
+1
View File
@@ -19,6 +19,7 @@
"@tanstack/react-query": "^5.104.3",
"@tanstack/react-router": "^1.170.45",
"antd": "^6.6.6",
"axios": "^1.20.0",
"lucide-react": "^1.59.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",