Add MindSpace canonical URL facade

This commit is contained in:
john
2026-07-02 21:04:49 +08:00
parent e4d6267c96
commit 66c530b1ed
4 changed files with 167 additions and 1 deletions
+1
View File
@@ -93,6 +93,7 @@ validatePublicBackingObject({ publicationId })
规则:
- 新代码不得直接拼 `/MindSpace/<userId>/...`
- 当前分支新增的 `mindspace-canonical-url.mjs` 是 P1 facade 起点;后续旧 helper 迁移到它后,再接入 backing object 校验。
- 旧 URL helper 暂时保留为 compatibility layer。
- public URL 必须能反查到 publication 或 asset。
- URL 返回前应校验 backing object 存在,或明确返回 pending 状态。