diff --git a/app/package.json b/app/package.json index 09fad98..3f606a2 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "react_bs_web", "private": true, - "proxy": "http://localhost:5000", + "proxy": "http://localhost:5173", "version": "0.0.0", "type": "module", "scripts": { diff --git a/app/src/components/Hero.jsx b/app/src/components/Hero.jsx index 5b4869b..55ad78d 100644 --- a/app/src/components/Hero.jsx +++ b/app/src/components/Hero.jsx @@ -135,7 +135,7 @@ const Hero = () => { function sentQuestion() { var ball = document.querySelector('.football'); if (ball) { - fetch("http://localhost:5000/LRegresion" + shooterX + "&" + shooterY).then( + fetch("http://localhost:5173/LRegresion" + shooterX + "&" + shooterY).then( res=> res.json() ).then( data => {