From 56296ac3bf161907e83054a2d54fc16f161e632c Mon Sep 17 00:00:00 2001 From: LukaszChrostowski Date: Thu, 28 Dec 2023 10:15:25 +0100 Subject: [PATCH] small work on app/model integration --- app/package.json | 2 +- app/src/components/Hero.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 => {