trabajo-afectivo/config/routes/email_address.rb

12 lines
516 B
Ruby
Raw Normal View History

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