Class: BlacklightIiifSearch::Routes

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

Instance Method Summary collapse

Constructor Details

#initialize(defaults = {}) ⇒ Routes

Returns a new instance of Routes.



5
6
7
# File 'lib/blacklight_iiif_search/routes.rb', line 5

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

Instance Method Details

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



9
10
11
12
# File 'lib/blacklight_iiif_search/routes.rb', line 9

def call(mapper, _options = {})
  mapper.get 'iiif_search', action: 'iiif_search'
  mapper.get 'iiif_suggest', action: 'iiif_suggest'
end