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