fix: correct profile api path

This commit is contained in:
Riccardo
2024-06-26 14:50:13 +02:00
parent 7a9cbcda02
commit a4179719cb

View File

@@ -8,7 +8,9 @@ export default withPageAuthRequired(function Profile() {
useEffect(() => { useEffect(() => {
(async () => { (async () => {
const res = await fetch(`${window.location.origin}/api/profile`); const res = await fetch(
`${window.location.origin}/api/protected/profile`
);
setUser(await res.json()); setUser(await res.json());
})(); })();
}, []); }, []);