Sha256: 3b6a72bd2f2bb88d865d60e5ac97f43327550e5855fd8d99e1ff9d05b761f89c

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 Bytes

Contents

NewspaperWorks::Engine.routes.draw do
  # Chronicling America-style linking
  get 'newspapers/:unique_id', to: 'newspapers#title', as: 'newspaper_title'
  get 'newspapers/:unique_id/:date', to: 'newspapers#issue', as: 'newspaper_issue'
  get 'newspapers/:unique_id/:date/:edition', to: 'newspapers#issue', as: 'newspaper_issue_edition'
  get 'newspapers/:unique_id/:date/:edition/:page', to: 'newspapers#page', as: 'newspaper_page'

  get 'newspapers_search', to: 'newspapers_search#search', as: 'newspapers_search'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 config/routes.rb
newspaper_works-1.0.0 config/routes.rb
newspaper_works-0.1.0 config/routes.rb