trabajo-afectivo/config/routes/text_module.rb

13 lines
569 B
Ruby
Raw Normal View History

2012-10-22 13:00:26 +00:00
module ExtraRoutes
def add(map)
# roles
2013-05-29 15:07:27 +00:00
map.match '/api/text_modules', :to => 'text_modules#index', :via => :get
map.match '/api/text_modules/:id', :to => 'text_modules#show', :via => :get
map.match '/api/text_modules', :to => 'text_modules#create', :via => :post
map.match '/api/text_modules/:id', :to => 'text_modules#update', :via => :put
map.match '/api/text_modules/:id', :to => 'text_modules#destroy', :via => :delete
2012-10-22 13:00:26 +00:00
end
module_function :add
end