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.
3 4 5 |
# File 'lib/blacklight_iiif_search/routes.rb', line 3 def initialize(defaults = {}) @defaults = defaults end |
Instance Method Details
#call(mapper, _options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/blacklight_iiif_search/routes.rb', line 7 def call(mapper, = {}) mapper.get 'iiif_search', action: 'iiif_search' mapper.get 'iiif_suggest', action: 'iiif_suggest' end |