X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7bcda2794f144dc2f1715a290a03df79c4010db8..21fd6d31263565159a081e85a3450a7f3de33c6a:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index dd08c7815..941991cdc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -19,6 +19,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}/search", :controller => 'search', :action => 'search_all' map.connect "api/#{API_VERSION}/way/search", :controller => 'search', :action => 'search_ways' map.connect "api/#{API_VERSION}/segment/search", :controller => 'search', :action => 'search_segments' @@ -31,6 +33,10 @@ ActionController::Routing::Routes.draw do |map| 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' + # Potlatch API + + map.connect "api/#{API_VERSION}/amf", :controller =>'amf', :action =>'talk' + # web site map.connect '/', :controller => 'site', :action => 'index' @@ -83,7 +89,9 @@ ActionController::Routing::Routes.draw do |map| # messages - map.connect '/message/new/:display_name', :controller => 'message', :action => 'new' + 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' # fall through map.connect ':controller/:id/:action'