trabajo-afectivo/config/routes/setting.rb

13 lines
561 B
Ruby
Raw Normal View History

module ExtraRoutes
def add(map, api_path)
# base objects
map.match api_path + '/settings', :to => 'settings#index', :via => :get
map.match api_path + '/settings/:id', :to => 'settings#show', :via => :get
map.match api_path + '/settings', :to => 'settings#create', :via => :post
map.match api_path + '/settings/:id', :to => 'settings#update', :via => :put
map.match api_path + '/settings/:id', :to => 'settings#destroy', :via => :delete
end
module_function :add
end