Prepard for rails 4.
This commit is contained in:
parent
18defadb71
commit
c58485281f
1 changed files with 4 additions and 4 deletions
|
@ -2,9 +2,9 @@ module ExtraRoutes
|
|||
def add(map)
|
||||
|
||||
# links
|
||||
map.match '/api/tags', :to => 'tags#list'
|
||||
map.match '/api/tags/add', :to => 'tags#add'
|
||||
map.match '/api/tags/remove', :to => 'tags#remove'
|
||||
map.match '/api/tags', :to => 'tags#list', :via => :get
|
||||
map.match '/api/tags/add', :to => 'tags#add', :via => :get
|
||||
map.match '/api/tags/remove', :to => 'tags#remove', :via => :get
|
||||
|
||||
end
|
||||
module_function :add
|
||||
|
|
Loading…
Reference in a new issue