X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7286ad027c7628adae872b51c3e7b1341781d3d4..0016c6f4b12356fd6174906dac3c240cdf572650:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 4ab8f307b..d213030c6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -315,7 +315,7 @@ OpenStreetMap::Application.routes.draw do post :mark patch :unmute - match :reply, :via => [:get, :post] + resource :reply, :module => :messages, :path_names => { :new => "new" }, :only => :new end namespace :messages, :path => "/messages" do resource :inbox, :only => :show @@ -326,6 +326,7 @@ OpenStreetMap::Application.routes.draw do get "/user/:display_name/outbox", :to => redirect(:path => "/messages/outbox") get "/message/new/:display_name", :to => redirect(:path => "/messages/new/%{display_name}") get "/message/read/:message_id", :to => redirect(:path => "/messages/%{message_id}") + get "/messages/:message_id/reply", :to => redirect(:path => "/messages/%{message_id}/reply/new") # muting users scope "/user/:display_name" do