trabajo-afectivo/config/routes/link.rb

12 lines
312 B
Ruby
Raw Normal View History

module ExtraRoutes
def add(map)
# links
2013-05-29 15:12:03 +00:00
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
2013-05-29 15:12:03 +00:00
end