get matchinfo #112

Merged
OpzekerIT merged 22 commits from dev into main 2023-11-14 21:38:18 +00:00
Showing only changes of commit 27613a14b0 - Show all commits

View file

@ -2,7 +2,7 @@
// Check if a match ID is provided in the GET request
if (isset($_GET['matchid'])) {
$matchId = $_GET['matchid'];
$filename = $matchId . ".json";
$filename = "matches/" . $matchId . ".json";
// Check if the JSON file for the given match ID exists
if (file_exists($filename)) {