feat: add monitoring feature with backend API and frontend UI for settings.

This commit is contained in:
2026-01-30 11:34:06 +08:00
parent 55a0e46487
commit 59441adc99
3 changed files with 185 additions and 7 deletions

View File

@@ -114,6 +114,10 @@ func startServer(cfg *config.Config) {
mux.HandleFunc("/api/team/status", api.CORS(api.HandleTeamProcessStatus))
mux.HandleFunc("/api/team/stop", api.CORS(api.HandleTeamProcessStop))
// 监控设置 API
mux.HandleFunc("/api/monitor/settings", api.CORS(api.HandleGetMonitorSettings))
mux.HandleFunc("/api/monitor/settings/save", api.CORS(api.HandleSaveMonitorSettings))
// 嵌入的前端静态文件
if web.IsEmbedded() {
webFS := web.GetFileSystem()