X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/26fb51c86e178a1c5bbe313c4688c623646173f8..f29300bf1a57a96dccacc20daade126dbea42f74:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index bf1f2a20f..dce4042de 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,6 +32,8 @@ ActionController::Routing::Routes.draw do |map| map.connect "api/#{API_VERSION}/map", :controller => 'api', :action => 'map' map.connect "api/#{API_VERSION}/trackpoints", :controller => 'api', :action => 'trackpoints' + + map.connect "api/#{API_VERSION}/changes", :controller => 'api', :action => 'changes' map.connect "api/#{API_VERSION}/search", :controller => 'search', :action => 'search_all' map.connect "api/#{API_VERSION}/ways/search", :controller => 'search', :action => 'search_ways' @@ -91,8 +93,9 @@ ActionController::Routing::Routes.draw do |map| map.connect '/user/:display_name/traces/:id/icon', :controller => 'trace', :action => 'icon' # user pages - map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend' map.connect '/user/:display_name', :controller => 'user', :action => 'view' + map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend' + map.connect '/user/:display_name/remove_friend', :controller => 'user', :action => 'remove_friend' map.connect '/user/:display_name/diary', :controller => 'diary_entry', :action => 'list' map.connect '/user/:display_name/diary/:id', :controller => 'diary_entry', :action => 'list', :id => /\d+/ map.connect '/user/:display_name/diary/rss', :controller => 'diary_entry', :action => 'rss' @@ -115,6 +118,7 @@ ActionController::Routing::Routes.draw do |map| # messages map.connect '/user/:display_name/inbox', :controller => 'message', :action => 'inbox' + map.connect '/user/:display_name/outbox', :controller => 'message', :action => 'outbox' map.connect '/message/new/:user_id', :controller => 'message', :action => 'new' map.connect '/message/read/:message_id', :controller => 'message', :action => 'read' map.connect '/message/mark/:message_id', :controller => 'message', :action => 'mark'