Fixed controller name.

This commit is contained in:
Martin Edenhofer 2013-05-29 17:07:27 +02:00
parent 745dbf40a1
commit a0ab8b30c3

View file

@ -2,11 +2,11 @@ module ExtraRoutes
def add(map)
# roles
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 => 'templates#destroy', :via => :delete
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
end
module_function :add