lib/blacklight/routes/searchable.rb in blacklight-7.0.0.rc1 vs lib/blacklight/routes/searchable.rb in blacklight-7.0.0.rc2
- old
+ new
@@ -4,15 +4,14 @@
class Searchable
def initialize(defaults = {})
@defaults = defaults
end
- def call(mapper, options = {})
- options = @defaults.merge(options)
-
+ def call(mapper, _options = {})
mapper.match '/', action: 'index', as: 'search', via: [:get, :post]
mapper.post ":id/track", action: 'track', as: 'track'
+ mapper.get ":id/raw", action: 'raw', as: 'raw', defaults: { format: 'json' }
mapper.get "opensearch"
mapper.get 'suggest', as: 'suggest_index', defaults: { format: 'json' }
mapper.get "facet/:id", action: 'facet', as: 'facet'
end