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.



6
7
8
# File 'lib/geoblacklight/routes/downloadable.rb', line 6

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

Instance Method Details

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



10
11
12
13
# File 'lib/geoblacklight/routes/downloadable.rb', line 10

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