about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2023-03-16 22:46:52 +0100
committerGitHub <noreply@github.com>2023-03-16 22:46:52 +0100
commit75e5a6e43738c278390c03c96d5d3e8575a2783c (patch)
treeefe4516b3260387ea192c851d1665d89d27dad77 /config
parentedc7ca5920641e938cb50c0bf49ff6b0c77a80b4 (diff)
Change user backups to use expiring URLs for download when possible (#24136)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ea595e1e1..8850545ca 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -220,6 +220,7 @@ Rails.application.routes.draw do
   resource :statuses_cleanup, controller: :statuses_cleanup, only: [:show, :update]
 
   get '/media_proxy/:id/(*any)', to: 'media_proxy#show', as: :media_proxy, format: false
+  get '/backups/:id/download', to: 'backups#download', as: :download_backup, format: false
 
   resource :authorize_interaction, only: [:show, :create]
   resource :share, only: [:show, :create]