X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/45c90003c688988590e91108f2ec64a199050578..c7e038a4d098ef9f42eb13edf29aef24cbd537ef:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 0e00da9e3..58d629d69 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -307,16 +307,16 @@ OpenStreetMap::Application.routes.draw do get "/export/embed" => "export#embed" # messages - resources :messages, :only => [:create, :show, :destroy] do + resources :messages, :id => /\d+/, :only => [:create, :show, :destroy] do post :mark patch :unmute match :reply, :via => [:get, :post] - collection do - get :inbox - get :muted - get :outbox - end + end + namespace :messages, :path => "/messages" do + resource :inbox, :only => :show + resource :muted_inbox, :path => "muted", :only => :show + resource :outbox, :only => :show end get "/user/:display_name/inbox", :to => redirect(:path => "/messages/inbox") get "/user/:display_name/outbox", :to => redirect(:path => "/messages/outbox")