class Geoblacklight::Routes::Downloadable

Public Class Methods

new(defaults = {}) click to toggle source
# File lib/geoblacklight/routes/downloadable.rb, line 5
def initialize(defaults = {})
  @defaults = defaults
end

Public Instance Methods

call(mapper, _options = {}) click to toggle source
# File lib/geoblacklight/routes/downloadable.rb, line 9
def call(mapper, _options = {})
  mapper.get 'file/:id', action: 'file', as: :file
  mapper.get 'hgl/:id', action: 'hgl', as: :hgl
end