Skip to content

Commit

Permalink
mount the lookbook only in the development environnement
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed May 8, 2023
1 parent 4ca9f7e commit 276760c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 276760c

Please sign in to comment.