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 e06555d commit 230033d
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 @@ -9,13 +9,11 @@
get '/v2/file/:id/:version_id/*file_name', to: 'file#show', format: false, as: :versioned_file, constraints: { version_id: /v\d+/ }
options '/file/:id/*file_name', to: 'file#options', format: false
options '/v2/file/:id/:version_id/*file_name', to: 'file#options', format: false, constraints: { version_id: /v\d+/ }
get '/file/app/:id/*file_name' => 'webauth#login_file', format: false
get '/file/auth/:id/*file_name' => 'webauth#login_file', format: false, as: :auth_file
get '/file/auth/:id' => 'webauth#login_object', format: false, as: :auth_object

get '/file/druid::id/*file_name' => 'file#show', format: false
options '/file/druid::id/*file_name', to: 'file#options', format: false
get '/file/app/druid::id/*file_name' => 'webauth#login_file', format: false
get '/file/auth/druid::id/*file_name' => 'webauth#login_file', format: false
get '/file/auth/druid::id' => 'webauth#login_object', format: false
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 230033d

Please sign in to comment.