about summary refs log tree commit diff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-02-21 19:50:12 +0100
committerGitHub <noreply@github.com>2021-02-21 19:50:12 +0100
commit8331fdf7e0ea85ecc6d7dbff00b784bb6aa1f7d4 (patch)
tree044e1475cb6e31c5c33d02a4220c95f080667c59 /config/routes.rb
parentdcc7c686f3c4c85ebb8a3e6d5a861fc530c1840d (diff)
Add server rules (#15769)
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index fd118f1d6..0ff48cf48 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -220,6 +220,7 @@ Rails.application.routes.draw do
     end
 
     resources :instances, only: [:index, :show], constraints: { id: /[^\/]+/ }
+    resources :rules
 
     resources :reports, only: [:index, :show] do
       member do
@@ -405,6 +406,7 @@ Rails.application.routes.draw do
       resource :instance, only: [:show] do
         resources :peers, only: [:index], controller: 'instances/peers'
         resource :activity, only: [:show], controller: 'instances/activity'
+        resources :rules, only: [:index], controller: 'instances/rules'
       end
 
       resource :domain_blocks, only: [:show, :create, :destroy]