trabajo-afectivo/config/routes/signature.rb

13 lines
569 B
Ruby
Raw Normal View History

module ExtraRoutes
def add(map, api_path)
# 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
end
module_function :add
end