/json/packages and /json/screenshots implemented

This commit is contained in:
Christoph Haas 2016-06-28 17:03:40 +02:00
parent b3d0b2dc06
commit a90bb51b38
4 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,6 @@
json.cache! ['json_packages'], expires_in: 1.hour do
json.packages @p do |p|
json.extract! p, :maintainer, :name, :section, :maintainer_email, :homepage, :description
json.url package_url(p.name)
end
end