mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
web/frpc: refactor dashboard with improved structure and API layer (#5117)
This commit is contained in:
parent
a4175a2595
commit
479e9f50c2
30 changed files with 2309 additions and 1694 deletions
|
|
@ -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)
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue