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
|
|
|
|
2013-08-06 22:10:28 +00:00
|
|
|
# signatures
|
|
|
|
map.match api_path + '/signatures', :to => 'signatures#index', :via => :get
|
|
|
|
map.match api_path + '/signatures/:id', :to => 'signatures#show', :via => :get
|
|
|
|
map.match api_path + '/signatures', :to => 'signatures#create', :via => :post
|
|
|
|
map.match api_path + '/signatures/:id', :to => 'signatures#update', :via => :put
|
|
|
|
map.match api_path + '/signatures/:id', :to => 'signatures#destroy', :via => :delete
|
2012-10-01 18:41:08 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
module_function :add
|
|
|
|
end
|