diff --git a/app/profile/page.tsx b/app/profile/page.tsx index 90cadc6..61d2ce0 100644 --- a/app/profile/page.tsx +++ b/app/profile/page.tsx @@ -8,7 +8,9 @@ export default withPageAuthRequired(function Profile() { useEffect(() => { (async () => { - const res = await fetch(`${window.location.origin}/api/profile`); + const res = await fetch( + `${window.location.origin}/api/protected/profile` + ); setUser(await res.json()); })(); }, []);