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

@@ -23,7 +23,7 @@ const StatPage = () => {
useEffect(() => {
// Posts per Day
axios
.get("http://localhost:5000/stats/posts_per_day")
.get("http://localhost:5000/stats/events_per_day")
.then(res => {
setData(res.data.filter((item: any) => new Date(item.date) >= new Date("2025-06-01")));
setLoading(false);