Added legacy URLs /without_screenshots and /with_screenshots
This commit is contained in:
parent
bac90cbd2f
commit
19257a7656
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,10 @@ Debshots::Application.routes.draw do
|
||||||
get 'thumbnail/:name' => 'packages#thumbnail', as: :thumbnail_image, name: /[^\/]+/
|
get 'thumbnail/:name' => 'packages#thumbnail', as: :thumbnail_image, name: /[^\/]+/
|
||||||
get 'thumbnail-with-version/:name/:version' => 'packages#thumbnail_with_version', name: /[^\/]+/, version: /\S+/
|
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.
|
# The priority is based upon order of creation: first created -> highest priority.
|
||||||
# See how all your routes lay out with "rake routes".
|
# See how all your routes lay out with "rake routes".
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue