X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7286ad027c7628adae872b51c3e7b1341781d3d4..af9d4f26962f7cdf30eef6bdfe53034df55598e4:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index 4ab8f307b..6d6acc7db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -279,11 +279,10 @@ OpenStreetMap::Application.routes.draw do get "/user/:display_name/account", :to => redirect(:path => "/account/edit") post "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user - resource :account, :only => [:edit, :update, :destroy] - - namespace :account do - resource :deletion, :only => [:show] + resource :account, :only => [:edit, :update, :destroy] do + resource :deletion, :module => :accounts, :only => :show end + resource :dashboard, :only => [:show] resource :preferences, :only => [:show, :edit, :update] resource :profile, :only => [:edit, :update] @@ -315,7 +314,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 +325,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