match 'api/0.6/gpx/:id/data' => 'trace#api_data', :via => :get
# AMF (ActionScript) API
-
match 'api/0.6/amf/read' => 'amf#amf_read', :via => :post
match 'api/0.6/amf/write' => 'amf#amf_write', :via => :post
match 'api/0.6/swf/trackpoints' => 'swf#trackpoints', :via => :get
+ # Map notes API
+ match 'api/0.6/notes' => 'note#list', :format => :xml
+ match 'api/0.6/notes/search' => 'note#search', :format => :xml
+ match 'api/0.6/notes/rss' => 'note#rss', :format => :rss
+ match 'api/0.6/note/create' => 'note#create'
+ match 'api/0.6/note/:id/comment' => 'note#update', :id => /\d+/
+ match 'api/0.6/note/:id/close' => 'note#close', :id => /\d+/
+ match 'api/0.6/note/:id' => 'note#read', :via => :get, :id => /\d+/, :format => :xml
+ match 'api/0.6/note/:id' => 'note#delete', :via => :delete, :id => /\d+/
+ match 'api/0.6/notes/addPOIexec' => 'note#create'
+ match 'api/0.6/notes/closePOIexec' => 'note#close'
+ match 'api/0.6/notes/editPOIexec' => 'note#update'
+ match 'api/0.6/notes/getGPX' => 'note#list', :format => :gpx
+ match 'api/0.6/notes/getRSSfeed' => 'note#rss', :format => :rss
+
# Data browsing
match '/browse/start' => 'browse#start', :via => :get
match '/browse/way/:id' => 'browse#way', :via => :get, :id => /\d+/
match '/browse/relation/:id' => 'browse#relation', :via => :get, :id => /\d+/
match '/browse/relation/:id/history' => 'browse#relation_history', :via => :get, :id => /\d+/
match '/browse/changeset/:id' => 'browse#changeset', :via => :get, :as => :changeset, :id => /\d+/
+ match '/browse/note/:id' => 'browse#note', :via => :get, :id => /\d+/
match '/user/:display_name/edits' => 'changeset#list', :via => :get
match '/user/:display_name/edits/feed' => 'changeset#feed', :via => :get, :format => :atom
- match '/browse/friends' => 'changeset#list', :via => :get, :friends => true
- match '/browse/nearby' => 'changeset#list', :via => :get, :nearby => true
+ match '/user/:display_name/notes' => 'note#mine', :via => :get
+ match '/browse/friends' => 'changeset#list', :via => :get, :friends => true, :as => "friend_changesets"
+ match '/browse/nearby' => 'changeset#list', :via => :get, :nearby => true, :as => "nearby_changesets"
match '/browse/changesets' => 'changeset#list', :via => :get
match '/browse/changesets/feed' => 'changeset#feed', :via => :get, :format => :atom
match '/browse' => 'changeset#list', :via => :get
match '/login' => 'user#login', :via => [:get, :post]
match '/logout' => 'user#logout', :via => [:get, :post]
match '/offline' => 'site#offline', :via => :get
- match '/key' => 'site#key', :via => :get
+ match '/key' => 'site#key', :via => :post
match '/user/new' => 'user#new', :via => :get
match '/user/terms' => 'user#terms', :via => [:get, :post]
match '/user/save' => 'user#save', :via => :post
match '/traces/mine' => 'trace#mine', :via => :get
match '/trace/create' => 'trace#create', :via => [:get, :post]
match '/trace/:id/data' => 'trace#data', :via => :get
- match '/trace/:id/edit' => 'trace#edit', :via => [:get, :post]
+ match '/trace/:id/edit' => 'trace#edit', :via => [:get, :post, :put]
match '/trace/:id/delete' => 'trace#delete', :via => :post
# diary pages
match '/diary/new' => 'diary_entry#new', :via => [:get, :post]
- match '/diary/friends' => 'diary_entry#list', :friends => true, :via => :get
- match '/diary/nearby' => 'diary_entry#list', :nearby => true , :via => :get
+ match '/diary/friends' => 'diary_entry#list', :friends => true, :via => :get, :as => "friend_diaries"
+ match '/diary/nearby' => 'diary_entry#list', :nearby => true, :via => :get, :as => "nearby_diaries"
match '/user/:display_name/diary/rss' => 'diary_entry#rss', :via => :get, :format => :rss
match '/diary/:language/rss' => 'diary_entry#rss', :via => :get, :format => :rss
match '/diary/rss' => 'diary_entry#rss', :via => :get, :format => :rss
match '/users/:status' => 'user#list', :via => [:get, :post]
# geocoder
- match '/geocoder/search' => 'geocoder#search', :via => :get
+ match '/geocoder/search' => 'geocoder#search', :via => :post
match '/geocoder/search_latlon' => 'geocoder#search_latlon', :via => :get
match '/geocoder/search_us_postcode' => 'geocoder#search_us_postcode', :via => :get
match '/geocoder/search_uk_postcode' => 'geocoder#search_uk_postcode', :via => :get
match '/geocoder/search_osm_namefinder' => 'geocoder#search_osm_namefinder', :via => :get
match '/geocoder/search_osm_nominatim' => 'geocoder#search_osm_nominatim', :via => :get
match '/geocoder/search_geonames' => 'geocoder#search_geonames', :via => :get
- match '/geocoder/description' => 'geocoder#description', :via => :get
+ match '/geocoder/description' => 'geocoder#description', :via => :post
match '/geocoder/description_osm_namefinder' => 'geocoder#description_osm_namefinder', :via => :get
match '/geocoder/description_osm_nominatim' => 'geocoder#description_osm_nominatim', :via => :get
match '/geocoder/description_geonames' => 'geocoder#description_geonames', :via => :get
match '/export/finish' => 'export#finish', :via => :post
# messages
- match '/user/:display_name/inbox' => 'message#inbox', :via => :get
- match '/user/:display_name/outbox' => 'message#outbox', :via => :get
+ match '/user/:display_name/inbox' => 'message#inbox', :via => :get, :as => "inbox"
+ match '/user/:display_name/outbox' => 'message#outbox', :via => :get, :as => "outbox"
match '/message/new/:display_name' => 'message#new', :via => [:get, :post]
match '/message/read/:message_id' => 'message#read', :via => :get
match '/message/mark/:message_id' => 'message#mark', :via => :post
- match '/message/reply/:message_id' => 'message#reply', :via => :get
+ match '/message/reply/:message_id' => 'message#reply', :via => [:get, :post]
match '/message/delete/:message_id' => 'message#delete', :via => :post
# oauth admin pages (i.e: for setting up new clients, etc...)