2012-10-01 18:41:08 +00:00
|
|
|
module ExtraRoutes
|
2013-08-06 22:10:28 +00:00
|
|
|
def add(map, api_path)
|
2012-10-01 18:41:08 +00:00
|
|
|
|
|
|
|
# groups
|
2013-08-06 22:10:28 +00:00
|
|
|
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
|
2012-10-01 18:41:08 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
module_function :add
|
|
|
|
end
|