Skip to content

Commit

Permalink
Fix order of GBL /catalog routes
Browse files Browse the repository at this point in the history
  • Loading branch information
spilth committed Aug 6, 2024
1 parent 6635dee commit 2946530
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 2946530

Please sign in to comment.