aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
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 ed6125abd..ec0e24f67 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -17,7 +17,7 @@ ActionController::Routing::Routes.draw do |map|
map.with_options :controller => 'general' do |general|
general.frontpage '/', :action => 'frontpage'
general.blog '/blog', :action => 'blog'
- general.custom_css '/stylesheets/custom.css', :action => 'custom_css'
+ general.custom_css '/stylesheets/custom.css', :action => 'custom_css'
general.search_redirect '/search', :action => 'search_redirect'
# XXX combined is the search query, and then if sorted a "/newest" at the end.
# Couldn't find a way to do this in routes which also picked up multiple other slashes
@@ -111,7 +111,11 @@ ActionController::Routing::Routes.draw do |map|
help.help_unhappy '/help/unhappy/:url_title', :action => 'unhappy'
help.help_about '/help/about', :action => 'about'
help.help_contact '/help/contact', :action => 'contact'
+ help.help_officers '/help/officers', :action => 'officers'
help.help_requesting '/help/requesting', :action => 'requesting'
+ help.help_privacy '/help/privacy', :action => 'privacy'
+ help.help_api '/help/api', :action => 'api'
+ help.help_credits '/help/credits', :action => 'credits'
help.help_general '/help/:action', :action => :action
end
@@ -191,6 +195,8 @@ ActionController::Routing::Routes.draw do |map|
rule.admin_rule_update '/admin/censor/update', :action => 'update'
rule.admin_rule_destroy '/admin/censor/destroy/:censor_rule_id', :action => 'destroy'
end
+ map.filter('locale')
+
# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'