Skip to content

Commit

Permalink
added some additional checks to contraints, also better handling of o…
Browse files Browse the repository at this point in the history
…ld URLs
  • Loading branch information
dfmurphy-wpi committed Oct 14, 2021
1 parent 77d6550 commit 8c00538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
concern :exportable, Blacklight::Routes::Exportable.new

mount PdfjsViewer::Rails::Engine => "/pdfjs", as: 'pdfjs'
match '/pdfviewer/:id', to: 'pdfviewer#index', constraints: { id: /.*/ }, as: 'pdfviewer', via: [:get]
#match '/pdfviewer/:id', to: 'pdfviewer#index', constraints: { id: /.*/ }, as: 'pdfviewer', via: [:get]
get '/pdfviewer/:id', to: 'pdfviewer#index', constraints: { id: /[a-z0-9]{9}/ }
get '/pdfviewer/:id/:parent', to: 'pdfviewer#index', constraints: { id: /[a-z0-9]{9}/ }

resources :solr_documents, only: [:show], path: '/catalog', controller: 'catalog' do
concerns :oai_provider
Expand Down

0 comments on commit 8c00538

Please sign in to comment.