X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f75eb6fe9ef1e0a755c1a1810c5ca15ed58d9d08..7e925c3c00cc5944fc743faf9d1509fcd30df55d:/config/routes.rb?ds=inline diff --git a/config/routes.rb b/config/routes.rb index d214c070c..525a4609a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,13 +10,13 @@ OpenStreetMap::Application.routes.draw do get "permissions" => "api/permissions#show" put "changeset/create" => "api/changesets#create" - post "changeset/:id/upload" => "api/changesets#upload", :id => /\d+/ + post "changeset/:id/upload" => "api/changesets#upload", :as => :changeset_upload, :id => /\d+/ get "changeset/:id/download" => "api/changesets#download", :as => :changeset_download, :id => /\d+/ get "changeset/:id" => "api/changesets#show", :as => :changeset_show, :id => /\d+/ post "changeset/:id/subscribe" => "api/changesets#subscribe", :as => :changeset_subscribe, :id => /\d+/ post "changeset/:id/unsubscribe" => "api/changesets#unsubscribe", :as => :changeset_unsubscribe, :id => /\d+/ put "changeset/:id" => "api/changesets#update", :id => /\d+/ - put "changeset/:id/close" => "api/changesets#close", :id => /\d+/ + put "changeset/:id/close" => "api/changesets#close", :as => :changeset_close, :id => /\d+/ get "changesets" => "api/changesets#query" post "changeset/:id/comment" => "api/changeset_comments#create", :as => :changeset_comment, :id => /\d+/ post "changeset/comment/:id/hide" => "api/changeset_comments#destroy", :as => :changeset_comment_hide, :id => /\d+/ @@ -28,7 +28,7 @@ OpenStreetMap::Application.routes.draw do get "node/:id/history" => "api/old_nodes#history", :id => /\d+/ post "node/:id/:version/redact" => "api/old_nodes#redact", :version => /\d+/, :id => /\d+/ get "node/:id/:version" => "api/old_nodes#version", :id => /\d+/, :version => /\d+/ - get "node/:id" => "api/nodes#show", :id => /\d+/ + get "node/:id" => "api/nodes#show", :as => :api_node, :id => /\d+/ put "node/:id" => "api/nodes#update", :id => /\d+/ delete "node/:id" => "api/nodes#delete", :id => /\d+/ get "nodes" => "api/nodes#index" @@ -39,7 +39,7 @@ OpenStreetMap::Application.routes.draw do get "way/:id/relations" => "api/relations#relations_for_way", :id => /\d+/ post "way/:id/:version/redact" => "api/old_ways#redact", :version => /\d+/, :id => /\d+/ get "way/:id/:version" => "api/old_ways#version", :id => /\d+/, :version => /\d+/ - get "way/:id" => "api/ways#show", :id => /\d+/ + get "way/:id" => "api/ways#show", :as => :api_way, :id => /\d+/ put "way/:id" => "api/ways#update", :id => /\d+/ delete "way/:id" => "api/ways#delete", :id => /\d+/ get "ways" => "api/ways#index" @@ -193,9 +193,9 @@ OpenStreetMap::Application.routes.draw do get "/user/:display_name/traces" => "traces#index" get "/user/:display_name/traces/tag/:tag/rss" => "traces#georss", :defaults => { :format => :rss } get "/user/:display_name/traces/rss" => "traces#georss", :defaults => { :format => :rss } - get "/user/:display_name/traces/:id" => "traces#show" - get "/user/:display_name/traces/:id/picture" => "traces#picture" - get "/user/:display_name/traces/:id/icon" => "traces#icon" + get "/user/:display_name/traces/:id" => "traces#show", :as => "show_trace" + get "/user/:display_name/traces/:id/picture" => "traces#picture", :as => "trace_picture" + get "/user/:display_name/traces/:id/icon" => "traces#icon", :as => "trace_icon" get "/traces/tag/:tag/page/:page" => "traces#index", :page => /[1-9][0-9]*/ get "/traces/tag/:tag" => "traces#index" get "/traces/page/:page" => "traces#index", :page => /[1-9][0-9]*/