X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/668f8020ccbf544de89822415e342c1c60826dfe..6fe1a503b61cdb1216625ef71d9134b009fd3af2:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 20bf02ce7..ca19c9668 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -19,12 +19,18 @@ ActionController::Routing::Routes.draw do |map| map.connect "api/#{API_VERSION}/map", :controller => 'api', :action => 'map' map.connect "api/#{API_VERSION}/user/details", :controller => 'user', :action => 'api_details' + map.connect "api/#{API_VERSION}/user/gpx_files", :controller => 'user', :action => 'api_gpx_files' + + map.connect "api/#{API_VERSION}/gpx/create/:filename/:description/:tags", :controller => 'trace', :action => 'api_create' + map.connect "api/#{API_VERSION}/gpx/:id/details", :controller => 'trace', :action => 'api_details' + map.connect "api/#{API_VERSION}/gpx/:id/data", :controller => 'trace', :action => 'api_data' # web site map.connect '/', :controller => 'site', :action => 'index' 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' map.connect '/login.html', :controller => 'user', :action => 'login' map.connect '/logout.html', :controller => 'user', :action => 'logout' map.connect '/create-account.html', :controller => 'user', :action => 'new'