appstore: add route to obtain popularity data info

This commit is contained in:
Alexandre Aubin 2023-09-25 15:24:23 +02:00
parent 3430a0bb99
commit 32c79d1f7a

View file

@ -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)