web/frpc: refactor dashboard with improved structure and API layer (#5117)

This commit is contained in:
fatedier
2026-01-09 00:40:51 +08:00
committed by GitHub
parent a4175a2595
commit 479e9f50c2
30 changed files with 2309 additions and 1694 deletions

View File

@@ -168,6 +168,7 @@ func (svr *Service) apiStatus(w http.ResponseWriter, _ *http.Request) {
log.Infof("http request [/api/status]")
defer func() {
log.Infof("http response [/api/status]")
w.Header().Set("Content-Type", "application/json")
buf, _ = json.Marshal(&res)
_, _ = w.Write(buf)
}()