From 1fa78559c54c65b0a95ecc409d52b2e9fd2823bc Mon Sep 17 00:00:00 2001 From: Pablo Date: Sun, 10 Mar 2024 16:31:11 +0100 Subject: [PATCH] 1st working test after changes --- webapp/src/pages/Game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/pages/Game.js b/webapp/src/pages/Game.js index 8a57aaa5..9854eba3 100644 --- a/webapp/src/pages/Game.js +++ b/webapp/src/pages/Game.js @@ -57,7 +57,8 @@ const Game = () => { // gets a random question from the database and initializes button states to null const startNewRound = async () => { setAnswered(false); - axios.get(`http://20.80.235.188:8000/questions`) + // It works deploying using git repo from machine with: axios.get(`http://20.80.235.188:8000/questions`) + axios.get(`${apiEndpoint}/questions`) .then(quest => { // every new round it gets a new question from db setQuestionData(quest.data);