Prepared for rails 4.
This commit is contained in:
parent
1c9776fcb4
commit
5d7065a30b
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/links', :to => 'links#index'
|
map.match '/api/links', :to => 'links#index', :via => :get
|
||||||
map.match '/api/links/add', :to => 'links#add'
|
map.match '/api/links/add', :to => 'links#add', :via => :get
|
||||||
map.match '/api/links/remove', :to => 'links#remove'
|
map.match '/api/links/remove', :to => 'links#remove', :via => :get
|
||||||
|
|
||||||
end
|
end
|
||||||
module_function :add
|
module_function :add
|
||||||
|
|
Loading…
Reference in a new issue