Class: Geoblacklight::Routes::Downloadable

Inherits:
Object
  • Object
show all
Defined in:
lib/geoblacklight/routes/downloadable.rb

Instance Method Summary collapse

Constructor Details

#initialize(defaults = {}) ⇒ Downloadable

Returns a new instance of Downloadable.



4
5
6
# File 'lib/geoblacklight/routes/downloadable.rb', line 4

def initialize(defaults = {})
  @defaults = defaults
end

Instance Method Details

#call(mapper, _options = {}) ⇒ Object



8
9
10
11
# File 'lib/geoblacklight/routes/downloadable.rb', line 8

def call(mapper, _options = {})
  mapper.get 'file/:id', action: 'file', as: :file
  mapper.get 'hgl/:id', action: 'hgl', as: :hgl
end