diff --git a/store/app.py b/store/app.py index 9640100c..a4e06aee 100644 --- a/store/app.py +++ b/store/app.py @@ -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/") def app_info(app_id): infos = get_catalog()["apps"].get(app_id)