aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/routes.rb8
2 files changed, 8 insertions, 2 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index cfb727695..f21f27ab6 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -24,5 +24,3 @@ config.action_mailer.delivery_method = :sendmail # so is queued, rather than giv
# unintentionally kept references to objects, especially strings.
# require 'memory_profiler'
# MemoryProfiler.start :string_debug => true, :delay => 10
-
-config.gem "gettext", :version => '>=1.9.3', :lib => false
diff --git a/config/routes.rb b/config/routes.rb
index 814deb760..13ab6669e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -240,6 +240,14 @@ ActionController::Routing::Routes.draw do |map|
rule.admin_rule_update '/admin/censor/update/:id', :action => 'update'
rule.admin_rule_destroy '/admin/censor/destroy/:censor_rule_id', :action => 'destroy'
end
+
+ map.with_options :controller => 'api' do |api|
+ api.api_create_request '/api/v2/request.json', :action => 'create_request', :conditions => { :method => :post }
+
+ api.api_show_request '/api/v2/request/:id.json', :action => 'show_request', :conditions => { :method => :get }
+ api.api_add_correspondence '/api/v2/request/:id.json', :action => 'add_correspondence', :conditions => { :method => :post }
+ end
+
map.filter('conditionallyprependlocale')
# Allow downloading Web Service WSDL as a file with an extension