trabajo-afectivo/config/routes/tag.rb

12 lines
352 B
Ruby
Raw Normal View History

2012-11-18 11:06:55 +00:00
module ExtraRoutes
def add(map, api_path)
2012-11-18 11:06:55 +00:00
# links
map.match api_path + '/tags', :to => 'tags#list', :via => :get
map.match api_path + '/tags/add', :to => 'tags#add', :via => :get
map.match api_path + '/tags/remove', :to => 'tags#remove', :via => :get
2012-11-18 11:06:55 +00:00
end
module_function :add
2013-05-29 15:11:34 +00:00
end