Update report.php

Change static route to relative route in URL for proper proxy operation
This commit is contained in:
Carlos V.
2025-08-19 13:07:58 +02:00
committed by GitHub
parent 962bbaa5a1
commit 086fa54035

View File

@@ -86,7 +86,7 @@
// Function to update the displayed data and timestamp based on the selected format and index // Function to update the displayed data and timestamp based on the selected format and index
function updateData(format, index) { function updateData(format, index) {
// Fetch data from the API endpoint // Fetch data from the API endpoint
fetch(`/php/server/query_json.php?file=table_notifications.json&nocache=${Date.now()}`) fetch(`php/server/query_json.php?file=table_notifications.json&nocache=${Date.now()}`)
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
if (index < 0) { if (index < 0) {