Skip to content

Commit

Permalink
Remove unused routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Aug 6, 2024
1 parent f0f7cca commit d9491cf
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 @@ -16,14 +16,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 d9491cf

Please sign in to comment.