文件资源+数据库连接情况
This commit is contained in:
@@ -228,6 +228,13 @@ func init() {
|
|||||||
Register("GET", monitor.UriNetOpt, monitor.Netoptions, nil)
|
Register("GET", monitor.UriNetOpt, monitor.Netoptions, nil)
|
||||||
Register("GET", monitor.UriIoOpt, monitor.Iooptions, 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
|
// To resolv rest POST/PUT/DELETE/PATCH cross domain
|
||||||
|
|||||||
Reference in New Issue
Block a user