aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ff99e884c..4b2eb5695 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -155,6 +155,7 @@ Alaveteli::Application.routes.draw do
match '/help/api' => 'help#api', :as => :help_api
match '/help/credits' => 'help#credits', :as => :help_credits
match '/help/:action' => 'help#action', :as => :help_general
+ match '/help' => 'help#index'
####
#### Holiday controller
@@ -267,6 +268,24 @@ Alaveteli::Application.routes.draw do
match '/admin/censor/edit/:id' => 'admin_censor_rule#edit', :as => :admin_rule_edit
match '/admin/censor/update/:id' => 'admin_censor_rule#update', :as => :admin_rule_update
match '/admin/censor/destroy/:censor_rule_id' => 'admin_censor_rule#destroy', :as => :admin_rule_destroy
+
+ scope '/admin', :as => 'admin' do
+ resources :info_requests, :only => [] do
+ resources :censor_rules,
+ :controller => 'admin_censor_rule',
+ :only => [:new, :create],
+ :name_prefix => 'info_request_'
+ end
+ end
+
+ scope '/admin', :as => 'admin' do
+ resources :users, :only => [] do
+ resources :censor_rules,
+ :controller => 'admin_censor_rule',
+ :only => [:new, :create],
+ :name_prefix => 'user_'
+ end
+ end
####
#### AdminSpamAddresses controller