about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-19 00:58:53 +0200
committerGitHub <noreply@github.com>2018-08-19 00:58:53 +0200
commit9dd5639f90e7a256863a2b1fc199390def8bdb14 (patch)
tree1ec4bb24d5a03c1b17a9e6d16f721298f1f619c0 /config/routes.rb
parentc6eab9e0aa06928e644cfe8445c0787e5515cd4f (diff)
Add admin function to deactivate all invites (#8279)
Fix #8261
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index fd3b5fe4b..a8716aae5 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -134,7 +134,12 @@ Rails.application.routes.draw do
     resources :email_domain_blocks, only: [:index, :new, :create, :destroy]
     resources :action_logs, only: [:index]
     resource :settings, only: [:edit, :update]
-    resources :invites, only: [:index, :create, :destroy]
+
+    resources :invites, only: [:index, :create, :destroy] do
+      collection do
+        post :deactivate_all
+      end
+    end
 
     resources :relays, only: [:index, :new, :create, :destroy] do
       member do