Class: BlacklightIiifSearch::Routes
- Inherits:
-
Object
- Object
- BlacklightIiifSearch::Routes
- Defined in:
- lib/blacklight_iiif_search/routes.rb
Instance Method Summary collapse
- #call(mapper, _options = {}) ⇒ Object
-
#initialize(defaults = {}) ⇒ Routes
constructor
A new instance of Routes.
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, = {}) mapper.get 'iiif_search', action: 'iiif_search' mapper.get 'iiif_suggest', action: 'iiif_suggest' end |