redirect old urls in avis mails with new urls
This commit is contained in:
parent
8f2b09ae06
commit
84d619c974
1 changed files with 2 additions and 0 deletions
|
@ -301,6 +301,8 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
scope module: 'instructeurs', as: 'instructeur' do
|
scope module: 'instructeurs', as: 'instructeur' do
|
||||||
get 'avis', to: 'avis#all', as: 'all_avis'
|
get 'avis', to: 'avis#all', as: 'all_avis'
|
||||||
|
get 'avis/:id', to: redirect('/procedures/old/avis/%{id}')
|
||||||
|
get 'avis/:id/sign_up/email/:email', to: redirect("/procedures/old/avis/%{id}/sign_up/email/%{email}"), constraints: { email: /.*/ }
|
||||||
resources :procedures, only: [:index, :show], param: :procedure_id do
|
resources :procedures, only: [:index, :show], param: :procedure_id do
|
||||||
member do
|
member do
|
||||||
resources :groupes, only: [:index, :show], controller: 'groupe_instructeurs' do
|
resources :groupes, only: [:index, :show], controller: 'groupe_instructeurs' do
|
||||||
|
|
Loading…
Reference in a new issue