Making the capabilities api version indipendent
This commit is contained in:
parent
138c20322d
commit
6889ee7564
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
ActionController::Routing::Routes.draw do |map|
|
||||
|
||||
# API
|
||||
map.connect "api/capabilities", :controller => 'api', :action => 'capabilities'
|
||||
|
||||
map.connect "api/#{API_VERSION}/changeset/create", :controller => 'changeset', :action => 'create'
|
||||
map.connect "api/#{API_VERSION}/changeset/upload", :controller => 'changeset', :action => 'upload'
|
||||
map.connect "api/#{API_VERSION}/changeset/:id", :controller => 'changeset', :action => 'read', :id => /\d+/
|
||||
|
@ -25,9 +27,6 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.connect "api/#{API_VERSION}/way/:id", :controller => 'way', :action => 'delete', :id => /\d+/, :conditions => { :method => :delete }
|
||||
map.connect "api/#{API_VERSION}/ways", :controller => 'way', :action => 'ways', :id => nil
|
||||
|
||||
# FIXME Wouldn't capabilites be better placed somewhere else in this file
|
||||
# and without the #{API_VERSION}, so that clients can always find it?
|
||||
map.connect "api/#{API_VERSION}/capabilities", :controller => 'api', :action => 'capabilities'
|
||||
map.connect "api/#{API_VERSION}/relation/create", :controller => 'relation', :action => 'create'
|
||||
map.connect "api/#{API_VERSION}/relation/:id/relations", :controller => 'relation', :action => 'relations_for_relation', :id => /\d+/
|
||||
map.connect "api/#{API_VERSION}/relation/:id/history", :controller => 'old_relation', :action => 'history', :id => /\d+/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue