feat(web): C0 release /admin when disabled; configurable admin_prefix

Stop mounting reserved admin routes when admin=False, nest CRUD under a
configurable prefix, and honor login/logout redirects so custom desks need no JS bypass.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-04 11:50:11 +08:00
1 parent 5f91be7c21
commit 0aa0f47a9d
10 files changed
+375 -90

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@
| 波次 | 内容 | 状态 |
|------|------|------|
| **C0** | `admin` 关则不占路径;`admin_prefix` / 登录回跳可配 | **planned** |
| **C0** | `admin` 关则不占路径;`admin_prefix` / 登录回跳可配 | **done** |
| **C1** | gate 匹配与未登录策略一致;段边界默认 admin gate | **planned** |
| **C2** | `shell_css` + `layout` 松绑 | **planned** |
| **C3** | 样式 strict / 脚本 defer·version | **planned** |