X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/df8cd4a7b2c364864aad0e4d9f56c1a4f4f0e990..a8bfe7c32ed654b0474b894f44da49c3f136266b:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index e95ec1e76..4b1161012 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,7 +2,8 @@ ActionController::Routing::Routes.draw do |map| # API map.connect "api/capabilities", :controller => 'api', :action => 'capabilities' - + map.connect "api/#{API_VERSION}/capabilities", :controller => 'api', :action => 'capabilities' + map.connect "api/#{API_VERSION}/changeset/create", :controller => 'changeset', :action => 'create' map.connect "api/#{API_VERSION}/changeset/:id/upload", :controller => 'changeset', :action => 'upload', :id => /\d+/ map.connect "api/#{API_VERSION}/changeset/:id/download", :controller => 'changeset', :action => 'download', :id => /\d+/ @@ -84,6 +85,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/browse/changesets', :controller => 'changeset', :action => 'list' # web site + map.root :controller => 'site', :action => 'index' map.connect '/', :controller => 'site', :action => 'index' map.connect '/edit', :controller => 'site', :action => 'edit' map.connect '/history', :controller => 'changeset', :action => 'list_bbox'