Go to file
caoqianming 08add0d087 refactor(api): embed runtime in unit list/get/detail responses
Remove the standalone GET /api/unit/runtimes endpoint in favour of
embedding runtime directly in existing responses:
- GET /api/unit          → each item now includes `runtime` field
- GET /api/unit/:id      → returns UnitWithRuntime
- GET /api/unit/:id/detail → UnitDetail now includes `runtime`

runtime is null when the engine has not yet initialised the unit.
Frontend loadUnits() reads the embedded runtime field to populate
state.runtimes — one request instead of two.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 09:18:14 +08:00
docs refactor(web): remove dead code and translate plan docs to Chinese 2026-03-26 08:57:29 +08:00
migrations feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
src refactor(api): embed runtime in unit list/get/detail responses 2026-03-26 09:18:14 +08:00
web refactor(api): embed runtime in unit list/get/detail responses 2026-03-26 09:18:14 +08:00
.gitignore feat: 软件第一个版本 2026-03-03 13:32:05 +08:00
API.md docs(api): add missing Tag, Page, Log sections and batch-auto/set-tags endpoints 2026-03-25 14:27:49 +08:00
Cargo.lock feat: add page 2026-03-11 13:23:05 +08:00
Cargo.toml feat(page): add page table and CRUD handlers 2026-03-11 13:54:14 +08:00