Profil: accessible to all roles

This commit is contained in:
simon lehericey 2019-07-02 18:15:03 +02:00 committed by Pierre de La Morinerie
parent 0091f65deb
commit d68d2be798
7 changed files with 53 additions and 37 deletions

View file

@ -291,6 +291,11 @@ Rails.application.routes.draw do
end
resource :feedback, only: [:create]
get 'demarches' => 'demarches#index'
get 'profil' => 'profil#show'
post 'renew-api-token' => 'profil#renew_api_token'
# allow refresh 'renew api token' page
get 'renew-api-token' => redirect('/profil')
end
#
@ -377,11 +382,6 @@ Rails.application.routes.draw do
patch 'add_to_procedure'
end
end
get 'profil' => 'profil#show'
post 'renew-api-token' => 'profil#renew_api_token'
# allow refresh 'renew api token' page
get 'renew-api-token' => redirect('/profil')
end
#