Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix order of GBL /catalog routes #355

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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