/json/packages and /json/screenshots implemented
This commit is contained in:
parent
b3d0b2dc06
commit
a90bb51b38
4 changed files with 25 additions and 0 deletions
6
app/views/json/packages.json.jbuilder
Normal file
6
app/views/json/packages.json.jbuilder
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue