2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 数据备份前端

This commit is contained in:
耗子
2024-10-13 22:44:42 +08:00
parent e1bcabec5d
commit f235492f8b
30 changed files with 559 additions and 73 deletions

View File

@@ -62,16 +62,14 @@ func Http(r chi.Router) {
r.Post("/{id}/status", website.UpdateStatus)
})
// TODO
r.Route("/backup", func(r chi.Router) {
r.Use(middleware.MustLogin)
backup := service.NewBackupService()
r.Get("/backup", backup.List)
r.Post("/create", backup.Create)
r.Post("/update", backup.Update)
r.Get("/{id}", backup.Get)
r.Delete("/{id}", backup.Delete)
r.Delete("/{id}/restore", backup.Restore)
r.Get("/{type}", backup.List)
r.Post("/{type}", backup.Create)
r.Post("/{type}/upload", backup.Upload)
r.Delete("/{type}/delete", backup.Delete)
r.Post("/{type}/restore", backup.Restore)
})
r.Route("/cert", func(r chi.Router) {