From 94bdaca023783060210d28a73847c94c15d42937 Mon Sep 17 00:00:00 2001 From: Whykioh Date: Mon, 30 Mar 2026 20:37:31 +0200 Subject: [PATCH] fix RequestHandler path --- yahtzee/js/config.js | 2 +- yahtzee/js/game.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yahtzee/js/config.js b/yahtzee/js/config.js index 5dac64f..1709e50 100644 --- a/yahtzee/js/config.js +++ b/yahtzee/js/config.js @@ -32,7 +32,7 @@ function updatePlayerInputs() { async function SqlRequest(action, params = {}) { try { - const response = await fetch('RequestsHandler.php', { + const response = await fetch('../RequestsHandler.php', { method: 'POST', headers: { 'Content-Type': 'application/json' diff --git a/yahtzee/js/game.js b/yahtzee/js/game.js index 34683b8..ed11a5d 100644 --- a/yahtzee/js/game.js +++ b/yahtzee/js/game.js @@ -1,6 +1,6 @@ async function SqlRequest(action, params = {}) { try { - const response = await fetch('RequestsHandler.php', { + const response = await fetch('../RequestsHandler.php', { method: 'POST', headers: { 'Content-Type': 'application/json'