From 276760c4225d41072457db4de4b22b9ed32f9ad4 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Mon, 8 May 2023 03:08:28 +0200 Subject: [PATCH] mount the lookbook only in the development environnement --- config/routes.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 96794aeac..6e5d0c1ea 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -207,6 +207,9 @@ get '/visualize' => 'ontologies#visualize', :as => :visualize_concept, :constraints => { ontology: /[^\/?]+/, id: /[^\/?]+/, ontologyid: /[^\/?]+/, conceptid: /[^\/?]+/ } get '/exhibit/:ontology/:id' => 'concepts#exhibit' - - mount Lookbook::Engine, at: "/lookbook" + + if Rails.env.development? + mount Lookbook::Engine, at: "/lookbook" + end + end