X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3a16b68368d4d4fdedb32c58d3c22d52203d07ce..659270dafecbbc03ebcd9783f71ae5efc825c1f2:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index a9767231f..469478969 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -184,7 +184,7 @@ OpenStreetMap::Application.routes.draw do match "/go/:code" => "site#permalink", :via => :get, :code => /[a-zA-Z0-9_@~]+[=-]*/ # rich text preview - match "/preview/:format" => "site#preview", :via => :post, :as => :preview + match "/preview/:type" => "site#preview", :via => :post, :as => :preview # traces match "/user/:display_name/traces/tag/:tag/page/:page" => "trace#list", :via => :get, :page => /[1-9][0-9]*/ @@ -223,7 +223,7 @@ OpenStreetMap::Application.routes.draw do match "/user/:display_name/diary" => "diary_entry#list", :via => :get match "/diary/:language" => "diary_entry#list", :via => :get match "/diary" => "diary_entry#list", :via => :get - match "/user/:display_name/diary/:id" => "diary_entry#view", :via => :get, :id => /\d+/ + match "/user/:display_name/diary/:id" => "diary_entry#view", :via => :get, :id => /\d+/, :as => :diary_entry match "/user/:display_name/diary/:id/newcomment" => "diary_entry#comment", :via => :post, :id => /\d+/ match "/user/:display_name/diary/:id/edit" => "diary_entry#edit", :via => [:get, :post], :id => /\d+/ match "/user/:display_name/diary/:id/hide" => "diary_entry#hide", :via => :post, :id => /\d+/, :as => :hide_diary_entry @@ -290,6 +290,20 @@ OpenStreetMap::Application.routes.draw do resources :user_blocks match "/blocks/:id/revoke" => "user_blocks#revoke", :via => [:get, :post], :as => "revoke_user_block" + # issues and reports + resources :issues do + member do + post "resolve" + post "assign" + post "ignore" + post "reopen" + end + end + + resources :reports + + post "/comment" => "issues#comment" + # redactions resources :redactions end