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:
1 parent
4eb9abff49
commit
a0e2df615c
4 files changed
+249
-15
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user