X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/92418b7954d8915734f07a66abf76f52b437a517..93dab8a1272f8c807da841c0a55b37f74b65b8c3:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index c36984c11..bb6da3785 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,10 +28,14 @@ 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/mine', :controller => 'trace', :action => 'mine' - map.connect '/traces/user/:user/:id', :controller => 'trace', :action => 'list', :id => nil + map.connect '/traces/user/:user_login/:id', :controller => 'trace', :action => 'view', :id => nil + map.connect '/traces/user/:user_login/:id/picture', :controller => 'trace', :action => 'picture', :id => nil + map.connect '/traces/user/:user_login/:id/icon', :controller => 'trace', :action => 'icon', :id => nil + # fall through map.connect ':controller/:action/:id' end