update app_auto_back backupfile route

This commit is contained in:
Chill
2024-06-07 10:47:20 +08:00
parent afb6535d02
commit 654b308285
3 changed files with 4 additions and 3 deletions

View File

@@ -12,8 +12,9 @@ _logger = logging.getLogger(__name__)
class AppAutoBackup(http.Controller):
@http.route("/download/backupfile/<path:file_path>", type="http", auth="user")
@http.route("/dbbackup/download/<path:file_path>", type="http", auth="user")
def download_backupfile(self, file_path, **kw):
_logger.warning('download_backupfile: %s', file_path)
if os.path.exists(file_path):
try:
with open(file_path, 'rb') as file: