Sha256: b05680c0493ff2117d435d49896312a3e67d5492f4bcf47011591de7130940e7

Contents?: true

Size: 438 Bytes

Versions: 17

Compression:

Stored size: 438 Bytes

Contents

module Europeana
  module Blacklight
    ##
    # URL routing for Europeana records
    class Routes
      def initialize(defaults = {})
        @defaults = defaults
      end

      def call(mapper, _options = {})
        mapper.constraints id: %r{[^/]+/[^/]+} do
          mapper.post 'record/*id/track', action: 'track', as: 'track'
          mapper.get 'record/*id', action: 'show', as: 'show'
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
europeana-blacklight-1.2.2 lib/europeana/blacklight/routes.rb
europeana-blacklight-1.2.1 lib/europeana/blacklight/routes.rb
europeana-blacklight-1.2.0 lib/europeana/blacklight/routes.rb
europeana-blacklight-1.1.0 lib/europeana/blacklight/routes.rb
europeana-blacklight-1.0.0 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.5.2 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.5.1 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.5.0 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.9 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.8 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.7 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.6 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.5 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.4 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.3 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.2 lib/europeana/blacklight/routes.rb
europeana-blacklight-0.4.1 lib/europeana/blacklight/routes.rb