Joined thumbnail_with_version with thumbnail dev to remove redundant code

This commit is contained in:
Christoph Haas 2016-06-27 16:00:28 +02:00
parent e864415a03
commit 0c4a0d9a3a
2 changed files with 7 additions and 26 deletions

View file

@ -27,7 +27,7 @@ Debshots::Application.routes.draw do
get 'approve_screenshot/:id' => 'packages#approve_screenshot', as: :approve_screenshot
get 'about' => 'welcome#about'
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', name: /[^\/]+/, version: /\S+/
# Legacy URLs
get 'with_screenshots', to: redirect('/packages?show=with')