Making table_appevents and table_notifications relative

This commit is contained in:
Allan Viana
2024-09-22 21:51:49 -03:00
committed by GitHub
parent 82ccb0c0b6
commit aa277136c6
2 changed files with 3 additions and 3 deletions

View File

@@ -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);