feat(mobile-api): leads admin API and @AdminModule(also)

List, detail and update under /api/admin/leads. Update validates and
normalises like capture and needs both Edit leads and Leads, enforced by
the new also() attribute, which fails closed if any lookup throws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-27 16:15:36 +08:00
1 parent 6855906cf1
commit 963735d524
11 files changed
+686 -10

No files matched your search

@@ -39,7 +39,7 @@ Design: `design.md` (decision numbers below refer to it). All tasks run serially
## 3. mobile-api
- [ ] 3.1 Add the leads admin API (design decision 4): list, detail and update under `/api/admin/leads`, with the module rules and the second check in code.
- [x] 3.1 Add the leads admin API (design decision 4): list, detail and update under `/api/admin/leads`, with the module rules and the second check in code.
Tests first:
- each validation code, with update normalisation the same as capture;