mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
feat: 项目缓存系统,跨扫描合并资产,缓存 host:port 避免漏报
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user