refactor: rename endpoint to events_per_day

This commit is contained in:
2026-01-28 19:48:37 +00:00
parent 85bcdb336b
commit 506ef3bd46
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ def upload_data():
return jsonify({"message": "File uploaded successfully", "event_count": len(stat_obj.df)}), 200
@app.route('/stats/posts_per_day', methods=['GET'])
@app.route('/stats/events_per_day', methods=['GET'])
def posts_per_day():
if stat_obj is None:
return jsonify({"error": "No data uploaded"}), 400