From 5d7065a30b0a5233670b825127c8c884fdd69205 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 29 May 2013 17:12:03 +0200 Subject: [PATCH] Prepared for rails 4. --- config/routes/link.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/routes/link.rb b/config/routes/link.rb index 89b7faeb0..086f413c6 100644 --- a/config/routes/link.rb +++ b/config/routes/link.rb @@ -2,10 +2,10 @@ module ExtraRoutes def add(map) # links - map.match '/api/links', :to => 'links#index' - map.match '/api/links/add', :to => 'links#add' - map.match '/api/links/remove', :to => 'links#remove' + map.match '/api/links', :to => 'links#index', :via => :get + map.match '/api/links/add', :to => 'links#add', :via => :get + map.match '/api/links/remove', :to => 'links#remove', :via => :get end module_function :add -end \ No newline at end of file +end