feat: cleanly add user preferences api and rollback wrong auth routes

This commit is contained in:
DXC
2026-03-24 11:01:39 +08:00
parent 5fe645dc0b
commit 4d821f2de7
3 changed files with 48 additions and 1 deletions

View File

@ -42,6 +42,16 @@ def create_app():
except ImportError as e:
print(f"❌ 错误: Auth 模块导入失败: {e}")
# -----------------------------------------------------
# 2.0.1 注册用户偏好模块 (User Preferences)
# -----------------------------------------------------
try:
from app.api.v1.user import user_prefs_bp
app.register_blueprint(user_prefs_bp, url_prefix='/api/v1/user')
print("✅ User Preferences 模块注册成功")
except ImportError as e:
print(f"❌ 错误: User Preferences 模块导入失败: {e}")
# -----------------------------------------------------
# 2.1 注册入库聚合模块 (Inbound)
# -----------------------------------------------------