Sha256: 0531595058dbc590d0cba3709eb5c767a063481c73789ac0344344051e040952

Contents?: true

Size: 1.05 KB

Versions: 28

Compression:

Stored size: 1.05 KB

Contents

require 'resque/server'

Krikri::Engine.routes.draw do
  # TODO: remove unnecessary :harvest_sources and :institutions routes once we
  # have established what we do and don't need
  resources :validation_reports, only: [:show]

  # Blacklight::CatalogController subclasses seem to have an issue where their
  # facet-related routes don't get automatically populated, leading to routing
  # errors when facet limits are enabled and the view attempts to render the
  # "more" links. This fix was suggested by Trey Terrell, demonstrated here:
  # https://github.com/OregonDigital/oregondigital/blob/d1653e41/config/routes.rb#L52-L56
  resources :records, only: [:index, :show] do
    collection do
      get "facet/:id", :to => "records#facet"
    end
  end

  resources :reports, only: [:index]
  resources :qa_reports, only: [:index, :show]
  resources :institutions do
    resources :harvest_sources, shallow: true
  end

  resources :providers, only: [:index, :show] do
    resources :field_value_reports, only: [:show]
  end

  mount Resque::Server.new, at: '/resque'
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
krikri-0.15.2 config/routes.rb
krikri-0.15.1 config/routes.rb
krikri-0.15.0 config/routes.rb
krikri-0.14.0 config/routes.rb
krikri-0.13.2 config/routes.rb
krikri-0.13.1 config/routes.rb
krikri-0.13.0 config/routes.rb
krikri-0.12.4 config/routes.rb
krikri-0.12.3 config/routes.rb
krikri-0.12.1 config/routes.rb
krikri-0.12.0 config/routes.rb
krikri-0.12.0.pre.rc.1 config/routes.rb
krikri-0.11.2 config/routes.rb
krikri-0.11.1 config/routes.rb
krikri-0.11.0 config/routes.rb
krikri-0.10.1 config/routes.rb
krikri-0.10.0 config/routes.rb
krikri-0.9.0 config/routes.rb
krikri-0.8.9 config/routes.rb
krikri-0.8.8 config/routes.rb