From 230033db43a1d085c95bbd8c56fbfa0052bec444 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Tue, 6 Aug 2024 10:23:33 -0500 Subject: [PATCH] Remove unused routes --- config/routes.rb | 2 -- spec/routing/file_routing_spec.rb | 4 ---- 2 files changed, 6 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6dccdb93..0969d54f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 diff --git a/spec/routing/file_routing_spec.rb b/spec/routing/file_routing_spec.rb index a9a6b6d8..6711e4eb 100644 --- a/spec/routing/file_routing_spec.rb +++ b/spec/routing/file_routing_spec.rb @@ -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