feat(system): add restart server endpoint with authentication
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user