Prepared for rails 4.

This commit is contained in:
Martin Edenhofer 2013-05-29 17:12:03 +02:00
parent c58485281f
commit b41907fafe

View file

@ -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
end