X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/25936fad050c62e3be1c0fa3912891dca8ecb745..e5f292cf21a5fa72733080a294484e0e4208e0e7:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index c36984c11..28d40bd5d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,10 +28,16 @@ ActionController::Routing::Routes.draw do |map| map.connect '/logout.html', :controller => 'user', :action => 'logout' map.connect '/create-account.html', :controller => 'user', :action => 'new' map.connect '/forgot-password.html', :controller => 'user', :action => 'lost_password' - + + # traces map.connect '/traces', :controller => 'trace', :action => 'list' + map.connect '/traces/page/:page', :controller => 'trace', :action => 'list' map.connect '/traces/mine', :controller => 'trace', :action => 'mine' - map.connect '/traces/user/:user/:id', :controller => 'trace', :action => 'list', :id => nil + map.connect '/traces/rss', :controller => 'trace', :action => 'georss' + map.connect '/traces/user/:display_name/:id', :controller => 'trace', :action => 'view', :id => nil + map.connect '/traces/user/:display_name/:id/picture', :controller => 'trace', :action => 'picture', :id => nil + map.connect '/traces/user/:display_name/:id/icon', :controller => 'trace', :action => 'icon', :id => nil + # fall through map.connect ':controller/:action/:id' end