fx /screenshot-with-version
This commit is contained in:
parent
c0b25fee99
commit
c09fcea025
1 changed files with 6 additions and 6 deletions
|
|
@ -62,11 +62,11 @@ Rails.application.routes.draw do
|
|||
|
||||
# Return small image for a specific package
|
||||
# TODO: needed at all?
|
||||
get 'small/:name' => 'packages#send_image', as: :small_image, name: %r{[^/]+},
|
||||
defaults: { size: :small }
|
||||
# Return small image by specific screenshot_id
|
||||
get 'small/:name/:screenshot_id' => 'packages#send_image', as: :small_image_with_id, name: %r{[^/]+},
|
||||
defaults: { size: :small }
|
||||
# get 'small/:name' => 'packages#send_image', as: :small_image, name: %r{[^/]+},
|
||||
# defaults: { size: :small }
|
||||
# # Return small image by specific screenshot_id
|
||||
# get 'small/:name/:screenshot_id' => 'packages#send_image', as: :small_image_with_id, name: %r{[^/]+},
|
||||
# defaults: { size: :small }
|
||||
|
||||
# Return large image for a specific package
|
||||
get 'screenshot/:name' => 'packages#send_image', as: :screenshot_image, name: %r{[^/]+},
|
||||
|
|
@ -76,7 +76,7 @@ Rails.application.routes.draw do
|
|||
defaults: { size: :large }
|
||||
get 'screenshot-404/:name' => 'packages#send_image', name: %r{[^/]+}
|
||||
get 'screenshot-with-version/:name/:version' => 'packages#send_image', name: %r{[^/]+},
|
||||
version: /\d.*/
|
||||
version: /\d.*/, defaults: { size: :large }
|
||||
|
||||
# Legacy URLs
|
||||
get 'with_screenshots', to: redirect('/packages?show=with')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue