Path: apps/api
Use this app for:
- the sample backend used by all official H5 and WeChat hosts
- contract-backed HTTP routes such as auth, items, settings, account, content, payment, and share flows
- local Node development and Cloudflare Worker deployment entry points
- D1-backed persistence, sample assets, and release verification surfaces
Keep the API structure explicit:
app.tsowns top-level app creation and middleware onlyapp-composition*.tsowns route-group and security assemblyhttp/*owns shared HTTP parsing and response helpersdomains/*owns business route slices and schemas
Do not collapse new behavior back into a monolithic app.ts or a single catch-all route file.