Sha256: 5009e5cdc7e0332db62c73216ec7208cdbb3a5d0086d4866c5306afe2261ea0b
Contents?: true
Size: 503 Bytes
Versions: 43
Compression:
Stored size: 503 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 "facet/:id", action: 'facet', as: 'facet' end end end end
Version data entries
43 entries across 43 versions & 1 rubygems