From d8e6fb5316a111c7d1b51342df5d753b1821c37d Mon Sep 17 00:00:00 2001 From: Denis Manherz Date: Fri, 18 Aug 2023 22:49:57 +0200 Subject: [PATCH] asd --- index.html | 2 +- package.json | 2 +- src/App.css | 3 ++- src/SharedPlanetState.jsx | 4 ++-- src/planets/path.jsx | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index bc75655..e76db21 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Why no working + Sol { const fetchData = async () => { fetch( - `http://127.0.0.1:8000/duration` + `?date=${dateTime.current}` + `http://192.168.1.136:8000/duration` + `?date=${dateTime.current}` ).then((response) => { if (!response.ok) { throw new Error( @@ -175,7 +175,7 @@ export const SharedPlanetState = ({ planetData, linePos }) => { const getRealTimePos = () => { const fetchData = async () => { - fetch(`http://127.0.0.1:8000/now`).then((response) => { + fetch(`http://192.168.1.136:8000/now`).then((response) => { if (!response.ok) { throw new Error( `This is an HTTP error: The status is ${response.status}` diff --git a/src/planets/path.jsx b/src/planets/path.jsx index bfeba0c..26ca941 100644 --- a/src/planets/path.jsx +++ b/src/planets/path.jsx @@ -82,7 +82,7 @@ export const PlanetPath = ({ if(first.current){ const fetchLinePos = async () => { fetch( - `http://127.0.0.1:8000/duration/line?name=${planet.name}&id=${planet.id}&LOY=${planet.year}` + `http://192.168.1.136:8000/duration/line?name=${planet.name}&id=${planet.id}&LOY=${planet.year}` ).then((response) => { if (!response.ok) { throw new Error(