about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-20 23:07:13 +0200
committerGitHub <noreply@github.com>2017-07-20 23:07:13 +0200
commit4b911fea03a204a1a1cc0e5f63ede1679e0494c3 (patch)
tree0edccd2b9e6268044b965af9c091695dc610978f /config
parent1fcdaafa6fbe6d746a096c33263d76e6819da46d (diff)
Add button to re-subscribe to all accounts from a domain (#4285)
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2aa89f16d..072ef7984 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -88,7 +88,12 @@ Rails.application.routes.draw do
     resources :subscriptions, only: [:index]
     resources :domain_blocks, only: [:index, :new, :create, :show, :destroy]
     resource :settings, only: [:edit, :update]
-    resources :instances, only: [:index]
+    
+    resources :instances, only: [:index] do
+      collection do
+        post :resubscribe
+      end
+    end
 
     resources :reports, only: [:index, :show, :update] do
       resources :reported_statuses, only: [:create, :update, :destroy]