routes: redirect /users/dossiers to /dossiers

This commit is contained in:
Pierre de La Morinerie 2018-07-03 11:35:32 +00:00 committed by gregoirenovel
parent e41e1c6690
commit 0aa2c1d9f6

View file

@ -125,7 +125,11 @@ Rails.application.routes.draw do
get 'text_summary' => 'dossiers#text_summary' get 'text_summary' => 'dossiers#text_summary'
end end
resource :dossiers
resource 'dossiers'
# Redirection of legacy "/users/dossiers" route to "/dossiers"
get 'dossiers', to: redirect('/dossiers')
end end
namespace :gestionnaire do namespace :gestionnaire do