trabajo-afectivo/config/routes/package.rb

11 lines
371 B
Ruby
Raw Normal View History

2012-12-27 20:17:33 +00:00
module ExtraRoutes
def add(map, api_path)
2012-12-27 20:17:33 +00:00
# overviews
map.match api_path + '/packages', :to => 'packages#index', :via => :get
map.match api_path + '/packages', :to => 'packages#install', :via => :post
map.match api_path + '/packages', :to => 'packages#uninstall', :via => :delete
2012-12-27 20:17:33 +00:00
end
module_function :add
end