Fixed controller name.
This commit is contained in:
parent
745dbf40a1
commit
a0ab8b30c3
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue