debshots/app/views/json/package.json.jbuilder

7 lines
288 B
Ruby

json.package @p.name
json.screenshots @p.screenshots do |s|
json.small_image_url "https://#{request.host_with_port}#{s.image.url(:thumb, timestamp: false)}"
json.large_image_url "https://#{request.host_with_port}#{s.image.url(:large, timestamp: false)}"
json.version s.version
end