Sha256: 8ee6cf4d3145c3e674cb10f2112dd66ce08ee81c0728aa7b58d8a917ac974c4e
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
# frozen_string_literal: true module Blacklight module Routes class Searchable def initialize(defaults = {}) @defaults = defaults end def call(mapper, _options = {}) mapper.match '/', action: 'index', as: 'search', via: [:get, :post] mapper.get '/advanced', action: 'advanced_search', as: 'advanced_search' mapper.get '/page_links', action: 'page_links', as: 'page_links' 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' mapper.get "facet/:id", action: 'facet', as: 'facet' mapper.get "facet_suggest/:id/(:query_fragment)", action: 'facet', as: 'facet_suggest', defaults: { only_values: true } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-8.8.0 | lib/blacklight/routes/searchable.rb |