a11yist/app/controllers/admin/backups_controller.rb

18 lines
427 B
Ruby
Raw Normal View History

2024-09-05 22:54:38 +02:00
# frozen_string_literal: true
2024-07-24 01:48:27 +02:00
module Admin
class BackupsController < ApplicationController
# GET /admin/backups/1
def show
2024-10-27 03:38:15 +01:00
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
2024-07-24 01:48:27 +02:00
end
end
end