mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-09 18:33:36 +02:00
fixed a few stuff
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
func SystemInfo(w http.ResponseWriter, r *http.Request) {
|
||||
info, err := metrics.GetSystemInfo(r.Context())
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
utils.HandleErr(w, r, err)
|
||||
return
|
||||
}
|
||||
utils.RespondJSON(w, r, info)
|
||||
|
||||
Reference in New Issue
Block a user