feat(system): add restart server endpoint with authentication

This commit is contained in:
2026-05-10 18:09:49 +08:00
parent 02bcfea745
commit 933c12fca1
3 changed files with 63 additions and 3 deletions
+1
View File
@@ -18,6 +18,7 @@ func setupRoutes() {
http.HandleFunc("/api/system/getStatus", GetStatusHandler)
http.HandleFunc("/api/system/getSoftwareInfo", GetSoftwareInfoHandler)
http.HandleFunc("/api/system/selfCheck", sys.SelfCheckHandler)
http.HandleFunc("/api/system/restart", utils.RestartHandler)
http.HandleFunc("/api/system/settings/get", handlers.GetSettingsHandler)
http.HandleFunc("/api/system/settings/set", handlers.SetSettingsHandler)