feat(sys): add self-check functionality for system settings and frpc binary

This commit is contained in:
2026-05-07 21:07:16 +08:00
parent 44195c9f26
commit 9ffb4263cf
5 changed files with 115 additions and 14 deletions
+3
View File
@@ -9,6 +9,7 @@ import (
"super-frpc/session"
"super-frpc/utils"
"super-frpc/web"
"super-frpc/sys"
)
func setupRoutes() {
@@ -16,6 +17,8 @@ func setupRoutes() {
http.HandleFunc("/api/system/getLogs", systemLogHandler.Handle)
http.HandleFunc("/api/system/getStatus", GetStatusHandler)
http.HandleFunc("/api/system/getSoftwareInfo", GetSoftwareInfoHandler)
http.HandleFunc("/api/system/selfCheck", sys.SelfCheckHandler)
http.HandleFunc("/api/system/settings/get", handlers.GetSettingsHandler)
http.HandleFunc("/api/system/settings/set", handlers.SetSettingsHandler)