From 012f4bbf7af2ebdb430af64e22efd51bc494d301 Mon Sep 17 00:00:00 2001 From: Joseba <17216533+jkuweb@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:35:29 +0100 Subject: [PATCH] fix GitHub url in fetch request --- .../01-react/05-architecture/01-routes/src/scenes/detail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-frameworks/01-react/05-architecture/01-routes/src/scenes/detail.tsx b/04-frameworks/01-react/05-architecture/01-routes/src/scenes/detail.tsx index d200f1a6b..b591e3b4e 100644 --- a/04-frameworks/01-react/05-architecture/01-routes/src/scenes/detail.tsx +++ b/04-frameworks/01-react/05-architecture/01-routes/src/scenes/detail.tsx @@ -25,7 +25,7 @@ export const DetailPage: React.FC = () => { const { id } = useParams(); React.useEffect(() => { - fetch(`https://api.github.com/users/${id}`) + fetch(`https://api.github.com/user/${id}`) .then((response) => response.json()) .then((json) => setMember(json)); }, []);