Prepard for rails 4.

This commit is contained in:
Martin Edenhofer 2013-05-29 17:11:34 +02:00
parent 18defadb71
commit c58485281f

View file

@ -2,10 +2,10 @@ module ExtraRoutes
def add(map)
# links
map.match '/api/tags', :to => 'tags#list'
map.match '/api/tags/add', :to => 'tags#add'
map.match '/api/tags/remove', :to => 'tags#remove'
map.match '/api/tags', :to => 'tags#list', :via => :get
map.match '/api/tags/add', :to => 'tags#add', :via => :get
map.match '/api/tags/remove', :to => 'tags#remove', :via => :get
end
module_function :add
end
end