X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/26fb51c86e178a1c5bbe313c4688c623646173f8..459e16861a190e4c6df91f74cec6d99bc60cd546:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index bf1f2a20f..3cfc51977 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,10 +118,12 @@ 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' - + map.connect '/message/reply/:message_id', :controller => 'message', :action => 'reply' + # fall through map.connect ':controller/:id/:action' map.connect ':controller/:action'