Sha256: 9720186eb6d3d4244cc8c9c79890cd3c86f49a913d908bfc8aff1a5c1f54a460

Contents?: true

Size: 570 Bytes

Versions: 74

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true
module Blacklight
  module Routes
    class Exportable
      def initialize(defaults = {})
        @defaults = defaults
      end

      def call(mapper, _options = {})
        mapper.member do
          mapper.match 'email', via: [:get, :post]
          mapper.match 'sms', via: [:get, :post]
          mapper.get 'citation'
        end

        mapper.collection do
          mapper.match 'email', via: [:get, :post]
          mapper.match 'sms', via: [:get, :post]
          mapper.get 'citation'
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
blacklight-7.18.0 lib/blacklight/routes/exportable.rb
blacklight-7.17.2 lib/blacklight/routes/exportable.rb
blacklight-7.17.1 lib/blacklight/routes/exportable.rb
blacklight-7.17.0 lib/blacklight/routes/exportable.rb
blacklight-7.16.0 lib/blacklight/routes/exportable.rb
blacklight-7.15.2 lib/blacklight/routes/exportable.rb
blacklight-7.15.1 lib/blacklight/routes/exportable.rb
blacklight-7.15.0 lib/blacklight/routes/exportable.rb
blacklight-7.14.1 lib/blacklight/routes/exportable.rb
blacklight-7.14.0 lib/blacklight/routes/exportable.rb
blacklight-7.13.2 lib/blacklight/routes/exportable.rb
blacklight-7.13.1 lib/blacklight/routes/exportable.rb
blacklight-7.13.0 lib/blacklight/routes/exportable.rb
blacklight-7.12.1 lib/blacklight/routes/exportable.rb
blacklight-7.12.0 lib/blacklight/routes/exportable.rb
blacklight-7.11.1 lib/blacklight/routes/exportable.rb
blacklight-7.10.0 lib/blacklight/routes/exportable.rb
blacklight-7.9.0 lib/blacklight/routes/exportable.rb
blacklight-7.8.1 lib/blacklight/routes/exportable.rb
blacklight-7.8.0 lib/blacklight/routes/exportable.rb