This commit is contained in:
Denis Manherz 2023-08-18 22:42:17 +02:00
parent 6d85ccdfc3
commit 10855871f8

View file

@ -24,7 +24,7 @@ const SolarSystemScene = () => {
useLayoutEffect(() => { useLayoutEffect(() => {
const fetchPlanetInfo = async () => { const fetchPlanetInfo = async () => {
fetch(`http://127.0.0.1:8000/planetInfo`).then((response) => { fetch(`http://192.168.1.136:8000/planetInfo`).then((response) => {
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(
`This is an HTTP error: The status is ${response.status}` `This is an HTTP error: The status is ${response.status}`
@ -46,7 +46,7 @@ const SolarSystemScene = () => {
}; };
fetchPlanetInfo(); fetchPlanetInfo();
const fetchLinePos = async () => { const fetchLinePos = async () => {
fetch(`http://127.0.0.1:8000/duration/line`).then((response) => { fetch(`http://192.168.1.136:8000/duration/line`).then((response) => {
if (!response.ok) { if (!response.ok) {
throw new Error( throw new Error(
`This is an HTTP error: The status is ${response.status}` `This is an HTTP error: The status is ${response.status}`