Added legacy URLs /without_screenshots and /with_screenshots

This commit is contained in:
Christoph Haas 2016-06-24 16:27:04 +02:00
parent bac90cbd2f
commit 19257a7656

View file

@ -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".