Skip to content

Commit

Permalink
Merge pull request #1229 from sul-dlss/remove-unused-route
Browse files Browse the repository at this point in the history
Remove unused routes
  • Loading branch information
justinlittman authored Aug 9, 2024
2 parents d009ec7 + d9491cf commit 3561319
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
# File/auth routes without druid namespace
get '/file/:id/*file_name' => 'file#show', as: :file
options '/file/:id/*file_name', to: 'file#options'
get '/file/app/:id/*file_name' => 'webauth#login_file'
get '/file/auth/:id/*file_name' => 'webauth#login_file', as: :auth_file
get '/file/auth/:id' => 'webauth#login_object', as: :auth_object

# File/auth routes with druid namespace
get '/file/druid::id/*file_name' => 'file#show'
options '/file/druid::id/*file_name', to: 'file#options'
get '/file/app/druid::id/*file_name' => 'webauth#login_file'
get '/file/auth/druid::id/*file_name' => 'webauth#login_file'
get '/file/auth/druid::id' => 'webauth#login_object'
end
Expand Down
4 changes: 0 additions & 4 deletions spec/routing/file_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,5 @@
it 'routes to webauth#login_file' do
expect(get: '/file/auth/oo000oo0000/def.pdf').to route_to('webauth#login_file', id: 'oo000oo0000', file_name: 'def.pdf')
end

it 'routes to webauth#login_file' do
expect(get: '/file/app/oo000oo0000/def.pdf').to route_to('webauth#login_file', id: 'oo000oo0000', file_name: 'def.pdf')
end
end
end

0 comments on commit 3561319

Please sign in to comment.