feat: 添加 WebUI 模块及相关 API 路由和 Token 管理功能

This commit is contained in:
墨梓柒
2025-11-14 23:31:53 +08:00
parent aa7fd1df90
commit cae61281a0
8 changed files with 532 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ class Server:
# 配置 CORS
origins = [
"http://localhost:3000", # 允许的前端源
"http://127.0.0.1:3000",
"http://localhost:7999", # 允许的前端源
"http://127.0.0.1:7999",
# 在生产环境中,您应该添加实际的前端域名
]