From 28bc76c160e2fba531b7c5a886b2575731bd270b Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Wed, 28 Dec 2022 18:25:24 +0100 Subject: [PATCH] adapt endpoint to api changes --- components/IndexGallery/IndexGallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/IndexGallery/IndexGallery.tsx b/components/IndexGallery/IndexGallery.tsx index 0d643b2..dca9f3d 100644 --- a/components/IndexGallery/IndexGallery.tsx +++ b/components/IndexGallery/IndexGallery.tsx @@ -13,7 +13,7 @@ const IndexGallery = () => { }; const [data, setData] = useState([]); useEffect(() => { - fetch("https://gractwo.pl/api/v1/images") + fetch("https://gractwo.pl/api/v1/index-images") .then((res) => { return res.json(); })