about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-19 20:29:41 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-03-19 20:29:41 +0100
commit56d998cbdbf9743ced5a77895b902ccf33b36332 (patch)
tree616546158b2c7098b28efc3ffc7c4e6435bf71a0 /config/routes.rb
parent08b96f1b9f419ab250f24f3828db28a247ef11ac (diff)
Export follow/block lists as CSV
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ac1d78d64..ea766e1b3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -46,7 +46,13 @@ Rails.application.routes.draw do
   namespace :settings do
     resource :profile, only: [:show, :update]
     resource :preferences, only: [:show, :update]
-    resource :export, only: [:show]
+
+    resource :export, only: [:show] do
+      collection do
+        get :follows, to: 'exports#download_following_list'
+        get :blocks, to: 'exports#download_blocking_list'
+      end
+    end
 
     resource :two_factor_auth, only: [:show] do
       member do