7 lines
318 B
Ruby
7 lines
318 B
Ruby
json.package @p.name
|
|
|
|
json.screenshots @p.screenshots do |s|
|
|
json.small_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "160x120", timestamp: false)}"
|
|
json.large_image_url "https://#{request.host_with_port}#{s.image.variant(resize: "800x600", timestamp: false)}"
|
|
json.version s.version
|
|
end
|