feat: backup and restore

This commit is contained in:
Jacky 2025-03-29 18:47:23 +08:00
parent 60f35ef863
commit 4cb4695e7b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
52 changed files with 9270 additions and 1439 deletions

View file

@ -16,6 +16,10 @@ func InitPrivateRouter(r *gin.RouterGroup) {
r.GET("upgrade/current", GetCurrentVersion)
r.GET("self_check", SelfCheck)
r.POST("self_check/:name/fix", SelfCheckFix)
// Backup and restore endpoints
r.GET("system/backup", CreateBackup)
r.POST("system/backup/restore", RestoreBackup)
}
func InitWebSocketRouter(r *gin.RouterGroup) {