Expose route-D page-hash diffs for paragraph edits

This commit is contained in:
gloamxun committed 2026-10-20 21:18:57 +08:00
1 parent fab9a473fc
commit dbccedb579
5 files changed
+128 -29

No files matched your search

+4
View File
@@ -567,3 +567,7 @@ The first M7 service integration is available as `POST /api/route-d/preview`.
It accepts blank-line-separated plain text, lays it out with the route-D page
builder, and returns the v1-compatible preview shape plus per-page hashes and
SVG. The v1 `/preview` and project APIs are unchanged and remain the default.
`POST /api/route-d/edit/{unit}` applies one paragraph edit to the last route-D
document and returns the same page list plus `changedPages` and
`recomputedPages`, exposing the checkpoint/page-hash diff from the core.