From bdf7213563115dfb15d1a8401c97b6a196c2fe78 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Sun, 12 Nov 2023 15:16:15 -0600 Subject: [PATCH] Rename endpoint to history --- pages/api/events/{user.ts => history.ts} | 0 pages/volunteerHistory.tsx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename pages/api/events/{user.ts => history.ts} (100%) diff --git a/pages/api/events/user.ts b/pages/api/events/history.ts similarity index 100% rename from pages/api/events/user.ts rename to pages/api/events/history.ts diff --git a/pages/volunteerHistory.tsx b/pages/volunteerHistory.tsx index 2cb5f842..9e7fbfd0 100644 --- a/pages/volunteerHistory.tsx +++ b/pages/volunteerHistory.tsx @@ -17,7 +17,7 @@ const VolunteerHistoryPage = () => { const [error, setError] = useState(); // Fetch volunteer history events when rendered useEffect(() => { - fetchData('/api/events/user') + fetchData('/api/events/history') .then(data => setEvents(data)) .catch(err => setError(err)); }, []);