diff --git a/lib/routes/routes.go b/lib/routes/routes.go index 425e0cf0..a9695f42 100644 --- a/lib/routes/routes.go +++ b/lib/routes/routes.go @@ -228,6 +228,13 @@ func init() { Register("GET", monitor.UriNetOpt, monitor.Netoptions, nil) Register("GET", monitor.UriIoOpt, monitor.Iooptions, nil) + // 文件资源 + Register("GET", file.UriDiskList, file.DiskList, nil) + Register("POST", file.UriListFiles, file.ListFiles, nil) + + // 数据库连接情况 + Register("GET", dbrest.UriDbConnection, dbrest.DbConnection, nil) + Register("POST", dbrest.UriDbStop, dbrest.DbStop, nil) } // To resolv rest POST/PUT/DELETE/PATCH cross domain