Write apps/backend/docs/api-treasury.md covering routes/treasury.ts — proposing a withdrawal, voting, TTL-per-ledger conversion table, and how these REST endpoints relate to the on-chain group_treasury/proposals Soroban contracts.
Acceptance criteria:
- Every route documented with request/response shape, status codes, and validation rules (recipient address format, TTL enum values, threshold bounds)
- The relationship between this REST layer and the on-chain contracts is explained at a "what calls what, and why both exist" level
- Verified against the current
routes/treasury.ts
Write
apps/backend/docs/api-treasury.mdcoveringroutes/treasury.ts— proposing a withdrawal, voting, TTL-per-ledger conversion table, and how these REST endpoints relate to the on-chaingroup_treasury/proposalsSoroban contracts.Acceptance criteria:
routes/treasury.ts