feat: 项目缓存系统,跨扫描合并资产,缓存 host:port 避免漏报

This commit is contained in:
ZacharyZcR
2026-04-28 11:17:21 +08:00
parent 0157e523ae
commit b3d4434057
4 changed files with 345 additions and 10 deletions
+8
View File
@@ -27,6 +27,14 @@ func RegisterRoutes(mux *http.ServeMux, hub *ws.Hub) {
mux.HandleFunc("/api/config/presets", configHandler.Presets)
mux.HandleFunc("/api/config/plugins", configHandler.Plugins)
// 项目缓存
projectHandler := NewProjectHandler()
mux.HandleFunc("/api/projects", projectHandler.List)
mux.HandleFunc("/api/projects/create", projectHandler.Create)
mux.HandleFunc("/api/projects/get", projectHandler.Get)
mux.HandleFunc("/api/projects/delete", projectHandler.Delete)
mux.HandleFunc("/api/projects/cache", projectHandler.Cache)
// 系统信息
mux.HandleFunc("/api/system/info", systemInfo)
mux.HandleFunc("/api/health", healthCheck)