diff --git a/config/routes.rb b/config/routes.rb index ad07a4b..c2e9db3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -29,6 +29,10 @@ Debshots::Application.routes.draw do get 'thumbnail/:name' => 'packages#thumbnail', as: :thumbnail_image, name: /[^\/]+/ get 'thumbnail-with-version/:name/:version' => 'packages#thumbnail_with_version', name: /[^\/]+/, version: /\S+/ + # Legacy URLs + get 'with_screenshots', to: redirect('/packages?show=with') + get 'without_screenshots', to: redirect('/packages?show=without') + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".