trabajo-afectivo/config/routes/taskbar.rb

11 lines
511 B
Ruby
Raw Normal View History

2013-05-29 15:11:11 +00:00
module ExtraRoutes
def add(map, api_path)
map.match api_path + '/taskbar', :to => 'taskbar#index', :via => :get
map.match api_path + '/taskbar/:id', :to => 'taskbar#show', :via => :get
map.match api_path + '/taskbar', :to => 'taskbar#create', :via => :post
map.match api_path + '/taskbar/:id', :to => 'taskbar#update', :via => :put
map.match api_path + '/taskbar/:id', :to => 'taskbar#destroy',:via => :delete
2013-05-29 15:11:11 +00:00
end
module_function :add
end