mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
17 lines
339 B
Go
17 lines
339 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/yusing/go-proxy/internal/api/v1/utils"
|
|
"github.com/yusing/go-proxy/internal/metrics"
|
|
)
|
|
|
|
func SystemInfo(w http.ResponseWriter, r *http.Request) {
|
|
info, err := metrics.GetSystemInfo(r.Context())
|
|
if err != nil {
|
|
utils.HandleErr(w, r, err)
|
|
return
|
|
}
|
|
utils.RespondJSON(w, r, info)
|
|
}
|