log backup

This commit is contained in:
2023-08-17 14:08:10 +08:00
parent 96b399c31b
commit 51f11b2284
4 changed files with 30 additions and 13 deletions

View File

@@ -10,6 +10,7 @@ import (
"ems.agt/features/dbrest"
"ems.agt/features/file"
"ems.agt/features/fm"
"ems.agt/features/lm"
"ems.agt/features/mml"
"ems.agt/features/monitor/monitor"
"ems.agt/features/monitor/psnet"
@@ -235,6 +236,11 @@ func init() {
// 数据库连接情况
Register("GET", dbrest.UriDbConnection, dbrest.DbConnection, nil)
Register("POST", dbrest.UriDbStop, dbrest.DbStop, nil)
// 日志表备份
Register("POST", lm.ExtBackupDataUri, lm.ExtDatabaseBackupData, nil)
Register("POST", lm.CustomExtBackupDataUri, lm.ExtDatabaseBackupData, nil)
}
// To resolv rest POST/PUT/DELETE/PATCH cross domain