feat(api): add endpoint for retrieving growth data for the dashboard

This commit is contained in:
shay
2026-05-27 10:16:11 -07:00
parent e7a0521ff6
commit 99c40cb0ce
5 changed files with 111 additions and 0 deletions
+6
View File
@@ -1104,6 +1104,12 @@ def dev_health():
return jsonify(analytics.query_health())
@app.route("/api/dev/growth", methods=["GET"])
@auth.require_basic_auth
def dev_growth():
return jsonify(analytics.query_growth())
@app.errorhandler(413)
def _too_large(_e):
return jsonify({"error": "payload_too_large"}), 413