explain redirection urls for expert
This commit is contained in:
parent
84d619c974
commit
90d6d337a9
1 changed files with 4 additions and 0 deletions
|
@ -301,8 +301,12 @@ Rails.application.routes.draw do
|
|||
|
||||
scope module: 'instructeurs', as: 'instructeur' do
|
||||
get 'avis', to: 'avis#all', as: 'all_avis'
|
||||
|
||||
# this redirections are ephemeral, to ensure that emails sent to experts before are still valid
|
||||
# TODO : they will be removed in September, 2020
|
||||
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
|
||||
member do
|
||||
resources :groupes, only: [:index, :show], controller: 'groupe_instructeurs' do
|
||||
|
|
Loading…
Reference in a new issue