X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7b89dc63496de0b6131a93c57d283ebb4490804b..2d2b6d7ed8826d3034f5224ece94aa5f0f1b0e6a:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 1916ae74a..71af08b73 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -85,18 +85,20 @@ OpenStreetMap::Application.routes.draw do match '/browse/relation/:id/history' => 'browse#relation_history', :id => /\d+/ match '/browse/changeset/:id' => 'browse#changeset', :as => :changeset, :id => /\d+/ match '/user/:display_name/edits' => 'changeset#list' - match '/user/:display_name/edits/feed' => 'changeset#list', :format => :atom + match '/user/:display_name/edits/feed' => 'changeset#feed', :format => :atom + match '/browse/friends' => 'changeset#list', :friends => true + match '/browse/nearby' => 'changeset#list', :nearby => true match '/browse/changesets' => 'changeset#list' - match '/browse/changesets/feed' => 'changeset#list', :format => :atom + match '/browse/changesets/feed' => 'changeset#feed', :format => :atom match '/browse' => 'changeset#list' # web site - match '/' => 'site#index' + root :to => 'site#index' match '/edit' => 'site#edit' - match '/copyright' => 'site#copyright' match '/copyright/:copyright_locale' => 'site#copyright' + match '/copyright' => 'site#copyright' match '/history' => 'changeset#list' - match '/history/feed' => 'changeset#list', :format => :atom + match '/history/feed' => 'changeset#feed', :format => :atom match '/export' => 'site#export' match '/login' => 'user#login' match '/logout' => 'user#logout' @@ -123,7 +125,7 @@ OpenStreetMap::Application.routes.draw do match '/forgot-password.html' => 'user#lost_password' # permalink - match '/go/:code' => 'site#permalink', :code => /[a-zA-Z0-9_@]+[=-]*/ + match '/go/:code' => 'site#permalink', :code => /[a-zA-Z0-9_@~]+[=-]*/ # traces match '/user/:display_name/traces/tag/:tag/page/:page' => 'trace#list' @@ -153,6 +155,8 @@ OpenStreetMap::Application.routes.draw do # diary pages match '/diary/new' => 'diary_entry#new' + match '/diary/friends' => 'diary_entry#list', :friends => true + match '/diary/nearby' => 'diary_entry#list', :nearby => true match '/user/:display_name/diary/rss' => 'diary_entry#rss', :format => :rss match '/diary/:language/rss' => 'diary_entry#rss', :format => :rss match '/diary/rss' => 'diary_entry#rss', :format => :rss