From aa277136c672b9a8afb243b4fd7316c705a54e83 Mon Sep 17 00:00:00 2001 From: Allan Viana <31132223+alnviana@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:51:49 -0300 Subject: [PATCH] Making table_appevents and table_notifications relative --- front/appEventsCore.php | 2 +- front/report.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/front/appEventsCore.php b/front/appEventsCore.php index 96831e19..2a7fa394 100755 --- a/front/appEventsCore.php +++ b/front/appEventsCore.php @@ -17,7 +17,7 @@ showSpinner() $(document).ready(function() { // Load JSON data from the provided URL - $.getJSON('/api/table_appevents.json', function(data) { + $.getJSON('api/table_appevents.json', function(data) { // Process the JSON data and generate UI dynamically processData(data) diff --git a/front/report.php b/front/report.php index 11db9f3b..265190ac 100755 --- a/front/report.php +++ b/front/report.php @@ -99,7 +99,7 @@ // Function to update the displayed data and timestamp based on the selected format and index function updateData(format, index) { // Fetch data from the API endpoint - fetch('/api/table_notifications.json?nocache=' + Date.now()) + fetch('api/table_notifications.json?nocache=' + Date.now()) .then(response => response.json()) .then(data => { if (index < 0) { @@ -163,7 +163,7 @@ const urlParams = new URLSearchParams(window.location.search); if (urlParams.has('guid')) { const guid = urlParams.get('guid'); - fetch('/api/table_notifications.json') + fetch('api/table_notifications.json') .then(response => response.json()) .then(data => { const index = findIndexByGUID(data.data, guid);