From 29465304cb2b76ba1740ad2ab063330ffbd772e8 Mon Sep 17 00:00:00 2001 From: Brian Kelly Date: Tue, 6 Aug 2024 13:53:27 -0500 Subject: [PATCH] Fix order of GBL /catalog routes --- config/routes.rb | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 3c715a67..e6ad9b69 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,21 +4,6 @@ mount Blacklight::Engine => '/' mount Geoblacklight::Engine => 'geoblacklight' - concern :gbl_exportable, Geoblacklight::Routes::Exportable.new - resources :solr_documents, only: [:show], path: '/catalog', controller: 'catalog' do - concerns :gbl_exportable - end - concern :gbl_wms, Geoblacklight::Routes::Wms.new - namespace :wms do - concerns :gbl_wms - end - concern :gbl_downloadable, Geoblacklight::Routes::Downloadable.new - namespace :download do - concerns :gbl_downloadable - end - resources :download, only: [:show] - - root to: "catalog#index" concern :searchable, Blacklight::Routes::Searchable.new @@ -40,6 +25,20 @@ end end + concern :gbl_exportable, Geoblacklight::Routes::Exportable.new + resources :solr_documents, only: [:show], path: '/catalog', controller: 'catalog' do + concerns :gbl_exportable + end + concern :gbl_wms, Geoblacklight::Routes::Wms.new + namespace :wms do + concerns :gbl_wms + end + concern :gbl_downloadable, Geoblacklight::Routes::Downloadable.new + namespace :download do + concerns :gbl_downloadable + end + resources :download, only: [:show] + # NYU Routes get 'logout', to: 'devise/sessions#destroy', as: :logout