Sha256: 572a55a802016175d2d71c463cc24f2a28d14e73d4cadf02920e79060c2d8c9b
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module Blacklight module Routes class Searchable def initialize(defaults = {}) @defaults = defaults end def call(mapper, options = {}) options = @defaults.merge(options) mapper.match '/', action: 'index', as: 'search', via: [:get, :post] mapper.post ":id/track", action: 'track', as: 'track' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-7.0.0.rc1 | lib/blacklight/routes/searchable.rb |