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'
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'
# 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'