-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.rb
43 lines (36 loc) · 1.33 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Rails.application.routes.draw do
mount Blacklight::Engine => '/'
root to: "catalog#index"
concern :searchable, Blacklight::Routes::Searchable.new
resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
concerns :searchable
end
devise_for :users
concern :exportable, Blacklight::Routes::Exportable.new
resources :solr_documents, only: [:show], path: '/catalog', controller: 'catalog' do
concerns :exportable
end
# Status page for Pingdom
get '/status', to: 'application#status'
# resources :bookmarks do
# concerns :exportable
# collection do
# delete 'clear'
# end
# end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
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]
end