From a4179719cb289fc3b0ef2eb2cef579fa0035de10 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Wed, 26 Jun 2024 14:50:13 +0200 Subject: [PATCH] fix: correct profile api path --- app/profile/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); })(); }, []);