Module: Geoblacklight::Routes

Extended by:
ActiveSupport::Concern
Defined in:
lib/geoblacklight/routes.rb

Instance Method Summary collapse

Instance Method Details

#web_services_routes(primary_resource) ⇒ Object


8
9
10
11
12
13
14
15
16
17
# File 'lib/geoblacklight/routes.rb', line 8

def web_services_routes(primary_resource)
  add_routes do |options|
    post 'wms/handle'
    resources :download, only: [:show, :file]
    get 'download/file/:id' => 'download#file', as: :download_file
    get 'download/hgl/:id' => 'download#hgl', as: :download_hgl
    get "#{primary_resource}/:id/web_services" => "#{primary_resource}#web_services", as: "web_services_#{primary_resource}"
    get "#{primary_resource}/:id/metadata" => "#{primary_resource}#metadata", as: "metadata_#{primary_resource}"
  end
end