trabajo-afectivo/config/routes/sla.rb

13 lines
513 B
Ruby
Raw Normal View History

2013-02-01 08:53:14 +00:00
module ExtraRoutes
def add(map, api_path)
2013-02-01 08:53:14 +00:00
# slas
map.match api_path + '/slas', :to => 'slas#index', :via => :get
map.match api_path + '/slas/:id', :to => 'slas#show', :via => :get
map.match api_path + '/slas', :to => 'slas#create', :via => :post
map.match api_path + '/slas/:id', :to => 'slas#update', :via => :put
map.match api_path + '/slas/:id', :to => 'slas#destroy', :via => :delete
2013-02-01 08:53:14 +00:00
end
module_function :add
end