refactor(api): split modules under shared/ with API_PREFIX

Move auth and users into folder modules, centralize path constants, and align MSW with endpoint paths in both template apps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zuiidea
2026-10-18 21:12:02 +08:00
co-authored by Cursor
parent ee87a66a84
commit c02f6dc2f2
38 changed files with 504 additions and 447 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ pnpm run test:e2e:ui # interactive UI mode
AGENTS.md # Agent rules (frontend/api/testing/refactor)
.agents/skills/add-resource/ # CRUD scaffold checklist (Skill)
src/
├── api/ # schemas, request (axios + defineApi), resource APIs
├── api/ # request.ts, shared/, auth/, users/, … (defineApi per module)
├── components/ # Reusable UI primitives and layout shells
│ ├── Layout/ # MainLayout, Header, Sidebar, UserMenu, AppFooter
│ ├── DataTable/ # Shared table frame/skeleton/empty state