Feature(restapi): add netstats

This commit is contained in:
xjasonlyu
2022-03-30 23:38:31 +08:00
parent abdbaa6b83
commit e6fc4adccd
4 changed files with 106 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ func Start(addr, token string) error {
r.Get("/logs", getLogs)
r.Get("/traffic", traffic)
r.Get("/version", version)
r.Get("/netstats", getNetStats)
r.Mount("/connections", connectionRouter())
})