X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8181cb4bf77548088f959562f24be17f8ec053a3..cacf1879c3bbae1fac645b53be6abf9ee139d686:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 92d849b4b..1d3a13565 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -41,6 +41,8 @@ ActionController::Routing::Routes.draw do |map| map.connect "api/#{API_VERSION}/nodes/search", :controller => 'search', :action => 'search_nodes' map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details' + map.connect "api/#{API_VERSION}/user/preferences", :controller => 'user_preference', :action => 'read', :conditions => { :method => :get } + map.connect "api/#{API_VERSION}/user/preferences", :controller => 'user_preference', :action => 'update', :conditions => { :method => :put } map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files' map.connect "api/#{API_VERSION}/gpx/create", :controller => 'trace', :action => 'api_create' @@ -59,6 +61,7 @@ ActionController::Routing::Routes.draw do |map| map.connect '/user/confirm', :controller => 'user', :action => 'confirm' map.connect '/user/go_public', :controller => 'user', :action => 'go_public' map.connect '/user/reset_password', :controller => 'user', :action => 'reset_password' + map.connect '/user/upload_image', :controller => 'user', :action => 'upload_image' map.connect '/index.html', :controller => 'site', :action => 'index' map.connect '/edit.html', :controller => 'site', :action => 'edit' map.connect '/search.html', :controller => 'way_tag', :action => 'search' @@ -79,6 +82,8 @@ ActionController::Routing::Routes.draw do |map| map.connect '/traces/mine/tag/:tag', :controller => 'trace', :action => 'mine' map.connect '/traces/mine/tag/:tag/page/:page', :controller => 'trace', :action => 'mine' map.connect '/trace/create', :controller => 'trace', :action => 'create' + map.connect '/trace/:id/data', :controller => 'trace', :action => 'data' + map.connect '/trace/:id/data.:format', :controller => 'trace', :action => 'data' map.connect '/trace/:id/edit', :controller => 'trace', :action => 'edit' map.connect '/trace/:id/delete', :controller => 'trace', :action => 'delete' map.connect '/trace/:id/make_public', :controller => 'trace', :action => 'make_public'