diff --git a/lib/routes/routes.go b/lib/routes/routes.go index 9d78821d..425e0cf0 100644 --- a/lib/routes/routes.go +++ b/lib/routes/routes.go @@ -11,6 +11,8 @@ import ( "ems.agt/features/file" "ems.agt/features/fm" "ems.agt/features/mml" + "ems.agt/features/monitor/monitor" + "ems.agt/features/monitor/psnet" "ems.agt/features/nbi" "ems.agt/features/pm" "ems.agt/features/security" @@ -216,6 +218,16 @@ func init() { // AAAA Register("GET", aaaa.CustomUriAAAASSO, aaaa.GetSSOFromAAAA, nil) + + // 进程网络 + Register("GET", psnet.UriWs, psnet.ProcessWs, nil) + Register("POST", psnet.UriStop, psnet.StopProcess, nil) + + // 主机CPU内存监控 + Register("POST", monitor.UriLoad, monitor.LoadMonitor, nil) + Register("GET", monitor.UriNetOpt, monitor.Netoptions, nil) + Register("GET", monitor.UriIoOpt, monitor.Iooptions, nil) + } // To resolv rest POST/PUT/DELETE/PATCH cross domain