trabajo-afectivo/config/routes/link.rb

12 lines
343 B
Ruby
Raw Normal View History

module ExtraRoutes
def add(map, api_path)
# links
map.match api_path + '/links', :to => 'links#index', :via => :get
map.match api_path + '/links/add', :to => 'links#add', :via => :get
map.match api_path + '/links/remove', :to => 'links#remove', :via => :get
end
module_function :add
2013-05-29 15:12:03 +00:00
end