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