mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
feat(api): add endpoint for retrieving growth data for the dashboard
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user