correctif(patron): limite l'usage de la page patron aux devs

This commit is contained in:
Martin 2023-01-23 17:41:02 +01:00 committed by mfo
parent 84a667b8bd
commit 5c48036cc6

View file

@ -182,7 +182,7 @@ Rails.application.routes.draw do
resources :recherche, only: [:index]
resources :api_tokens, only: [:create, :update, :destroy]
get "patron" => "root#patron"
get "patron" => "root#patron" if Rails.env.development? || Rails.env.test?
get "suivi" => "root#suivi"
post "dismiss_outdated_browser" => "root#dismiss_outdated_browser"
post "save_locale" => "root#save_locale"