/thumbnail-with-version/package/version implemented

This commit is contained in:
Christoph Haas 2016-06-24 16:18:36 +02:00
parent 6feaa53920
commit 9603550aab
2 changed files with 27 additions and 0 deletions

View file

@ -27,6 +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+/
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".