feat(system): add system status and software info endpoints

Add new endpoints to expose system status and software information:
- /system/getStatus returns current system status (online/offline)
- /system/getSoftwareInfo returns software version and build details
Update API documentation to include new endpoints
This commit is contained in:
2026-03-09 19:02:56 +08:00
parent 8b9a757bea
commit a142fb17a8
3 changed files with 89 additions and 2 deletions

View File

@@ -8,6 +8,9 @@ import (
func setupRoutes() {
postLog.Info("Setting up routes...")
http.HandleFunc("/system/getStatus", GetStatusHandler)
http.HandleFunc("/system/getSoftwareInfo", GetSoftwareInfoHandler)
http.HandleFunc("/register", RegisterHandler)
http.HandleFunc("/login", LoginHandler)
http.HandleFunc("/logout", LogoutHandler)