Sha256: bad4e643f0657ff36facdf97cf523a2018fe8fc9d58e828c315d0e2d2ad9f29d

Contents?: true

Size: 625 Bytes

Versions: 26

Compression:

Stored size: 625 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.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
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
blacklight-7.14.1 lib/blacklight/routes/searchable.rb
blacklight-7.14.0 lib/blacklight/routes/searchable.rb
blacklight-7.13.2 lib/blacklight/routes/searchable.rb
blacklight-7.13.1 lib/blacklight/routes/searchable.rb
blacklight-7.13.0 lib/blacklight/routes/searchable.rb
blacklight-7.12.1 lib/blacklight/routes/searchable.rb
blacklight-7.12.0 lib/blacklight/routes/searchable.rb
blacklight-7.11.1 lib/blacklight/routes/searchable.rb
blacklight-7.10.0 lib/blacklight/routes/searchable.rb
blacklight-7.9.0 lib/blacklight/routes/searchable.rb
blacklight-7.8.1 lib/blacklight/routes/searchable.rb
blacklight-7.8.0 lib/blacklight/routes/searchable.rb
blacklight-7.7.0 lib/blacklight/routes/searchable.rb
blacklight-7.6.0 lib/blacklight/routes/searchable.rb
blacklight-7.5.1 lib/blacklight/routes/searchable.rb
blacklight-7.5.0 lib/blacklight/routes/searchable.rb
blacklight-7.4.2 lib/blacklight/routes/searchable.rb
blacklight-7.4.1 lib/blacklight/routes/searchable.rb
blacklight-7.4.0 lib/blacklight/routes/searchable.rb
blacklight-7.3.0 lib/blacklight/routes/searchable.rb