From 396f41835072a158f92a35ee89b6977c60c9abf9 Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Mon, 15 May 2023 16:55:42 -0500 Subject: [PATCH] Testing request url change --- main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 828d207..6ad4c2b 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,5 @@ function setDatabaseVersion() { - url = 'http://localhost:8000/api/database_version.php'; + url = '/api/database_version.php'; response = makeRequest(url); setInfoSection(response); } @@ -13,7 +13,7 @@ function makeRequest(url){ } function setCrontabStats(){ - url = "http://localhost:8000/api/crontab_stats.php"; + url = "/api/crontab_stats.php"; response = makeRequest(url); setInfoSection(response); } @@ -24,19 +24,19 @@ function setInfoSection (string) { } function getTable(name){ - url = "http://localhost:8000/api/table.php?name=" + name; + url = "/api/table.php?name=" + name; response = makeRequest(url); setInfoSection(response); } function getCrontabs (){ - url = "http://localhost:8000/api/table.php?name='crontabs'&columns=crontab_path,crontab_created_timestamp,crontab_modified_timestamp"; + url = "/api/table.php?name='crontabs'&columns=crontab_path,crontab_created_timestamp,crontab_modified_timestamp"; response = makeRequest(url); setInfoSection(response); } function test (){ - url = "http://localhost:8000/api/crontab_view.php?name=0hourly"; + url = "/api/crontab_view.php?name=0hourly"; response = makeRequest(url); setInfoSection(response); } @@ -45,4 +45,4 @@ function triggerPopup(info_to_get){ const modal = document.querySelector('dialog'); document.querySelector("#popup_button").addEventListener("click", () => {modal.showModal();}); -} \ No newline at end of file +}