feat(sys): add self-check functionality for system settings and frpc binary
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user