a11yist/app/controllers/admin/backups_controller.rb
david fc71cd4a09
Some checks failed
/ Run tests (push) Failing after 16s
/ Run system tests (push) Failing after 14s
/ Build, push and deploy image (push) Has been skipped
improve backup
2024-10-27 03:38:15 +01:00

17 lines
427 B
Ruby

# frozen_string_literal: true
module Admin
class BackupsController < ApplicationController
# GET /admin/backups/1
def show
respond_to do |format|
format.xlsx do
send_file Backup.db_xlsx, filename: "backup.xlsx", disposition: :attachment
end
format.zip do
send_file Backup.zip, filename: "backup.zip", disposition: :attachment
end
end
end
end
end