X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/37f404252c6cdfef5d66545da774b2d1abbd6703..2aca6920dc3488a381b275d21a31344da02029e6:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 1016a89de..0c250b0cc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -224,7 +224,7 @@ OpenStreetMap::Application.routes.draw do get "/user/:display_name/diary" => "diary_entry#list" get "/diary/:language" => "diary_entry#list" get "/diary" => "diary_entry#list" - get "/user/:display_name/diary/:id" => "diary_entry#view", :id => /\d+/ + get "/user/:display_name/diary/:id" => "diary_entry#view", :id => /\d+/, :as => :diary_entry post "/user/:display_name/diary/:id/newcomment" => "diary_entry#comment", :id => /\d+/ match "/user/:display_name/diary/:id/edit" => "diary_entry#edit", :via => [:get, :post], :id => /\d+/ post "/user/:display_name/diary/:id/hide" => "diary_entry#hide", :id => /\d+/, :as => :hide_diary_entry @@ -289,6 +289,19 @@ 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 + resources :comments, :controller => :issue_comments + member do + post "resolve" + post "assign" + post "ignore" + post "reopen" + end + end + + resources :reports + # redactions resources :redactions end