From 451a5a92ddbb76931230fa9bcdc026e5d0d4fcbb Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Wed, 24 Sep 2025 17:57:44 +0200 Subject: [PATCH] update API endpoints in Landingpage component to use production URLs --- admin/src/components/API/Landingpage.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/src/components/API/Landingpage.tsx b/admin/src/components/API/Landingpage.tsx index 3c61d6a..1cef97d 100644 --- a/admin/src/components/API/Landingpage.tsx +++ b/admin/src/components/API/Landingpage.tsx @@ -57,7 +57,9 @@ const Landingpage: React.FC = () => { const fetchData = async () => { setIsLoading(true); try { - const loanRes = await fetch("http://localhost:8002/apiV2/allLoans"); + const loanRes = await fetch( + "https://backend.insta.the1s.de/apiV2/allLoans" + ); const loanData = await loanRes.json(); if (Array.isArray(loanData)) { setLoans(loanData); @@ -69,7 +71,9 @@ const Landingpage: React.FC = () => { ); } - const deviceRes = await fetch("http://localhost:8002/apiV2/allItems"); + const deviceRes = await fetch( + "https://backend.insta.the1s.de/apiV2/allItems" + ); const deviceData = await deviceRes.json(); if (Array.isArray(deviceData)) { setDevices(deviceData);