From d9491cfdcbe48ef430e13d769c9ae903671c53ee 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 7a2f2085..2c33bcbb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 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