refactor: P6 API v1 版本化
- src/routes/v1.py:注册中心,148 条路由全部挂 /api/v1 - application/views/__init__.py:自动发现改为 register_v1 显式注册 - 登录白名单更新为 /api/v1/login 等(.env 与 .env.example) - build_full_url:内部调度调用自动加 /api/v1 前缀 【联动】ui/ 前端需将 API 调用前缀改为 /api/v1(随 ui/ 迁移处理) 【验收】148 路由全 /api/v1;白名单放行(/api/v1/login 表单校验); 鉴权拦截 401;build_full_url 验证;12 passed Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
4b0b28105c
commit
4d74b31431
@@ -0,0 +1 @@
|
||||
"""路由注册中心包。"""
|
||||
Reference in New Issue
Block a user