feat: add /api/server/getInfo to handle frontend get server info.

chore: rebuild `/api/server/getStatus` to the same logic as `getInfo`.
This commit is contained in:
2026-09-08 22:28:49 +08:00
parent 4eb9abff49
commit a0e2df615c
4 changed files with 249 additions and 15 deletions
+1
View File
@@ -20,6 +20,7 @@ func SetupRouter() *http.ServeMux {
// Server endpoints (authenticated).
mux.HandleFunc("/api/server/list", handler.ServerListHandler)
mux.HandleFunc("/api/server/getInfo", handler.ServerGetInfoHandler)
mux.HandleFunc("/api/server/getStatus", handler.ServerGetStatusHandler)
mux.HandleFunc("/api/server/exec", handler.ServerExecHandler)