mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
appstore: add route to obtain popularity data info
This commit is contained in:
parent
7c13156a26
commit
281b41fc6b
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@ def browse_catalog():
|
|||
)
|
||||
|
||||
|
||||
@app.route("/popularity.json")
|
||||
def popularity_json():
|
||||
return {app: len(stars) for app, stars in get_stars().items()}
|
||||
|
||||
|
||||
@app.route("/app/<app_id>")
|
||||
def app_info(app_id):
|
||||
infos = get_catalog()["apps"].get(app_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue