From 8d815b0788945d076bbf823ea2dc16082598a733 Mon Sep 17 00:00:00 2001 From: John D'Orazio Date: Fri, 7 Jun 2024 12:12:07 +0200 Subject: [PATCH] update examples with new endpoints --- fullcalendar/examples/script.js | 4 ++-- javascript/script.js | 4 ++-- php/index.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fullcalendar/examples/script.js b/fullcalendar/examples/script.js index e533622..0b575e2 100644 --- a/fullcalendar/examples/script.js +++ b/fullcalendar/examples/script.js @@ -9,8 +9,8 @@ const thirdLevelDomain = window.location.hostname.split('.')[0]; const isStaging = ( thirdLevelDomain.includes( '-staging' ) || window.location.pathname.includes( '-staging' ) ); const stagingURL = isStaging ? '-staging' : ''; const endpointV = isStaging ? 'dev' : 'v3'; -const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalEngine.php`; -const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalMetadata.php`; +const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/`; +const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/metadata/`; const supportedUILocales = [ 'de', 'en', 'es', 'fr', 'it', 'la', 'pt', 'nl' ]; let messages = null, diff --git a/javascript/script.js b/javascript/script.js index 366090f..4f9eda5 100644 --- a/javascript/script.js +++ b/javascript/script.js @@ -2,8 +2,8 @@ const thirdLevelDomain = window.location.hostname.split('.')[0]; const isStaging = ( thirdLevelDomain === 'litcal-staging' || window.location.pathname.includes( '-staging' ) ); const stagingURL = isStaging ? '-staging' : ''; const endpointV = isStaging ? 'dev' : 'v3'; -const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalEngine.php`; -const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/LitCalMetadata.php`; +const endpointURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/`; +const metadataURL = `https://litcal.johnromanodorazio.com/api/${endpointV}/metadata/`; if(Cookies.get("currentLocale") === undefined){ Cookies.set("currentLocale", navigator.language ); diff --git a/php/index.php b/php/index.php index 6de4f56..8842add 100644 --- a/php/index.php +++ b/php/index.php @@ -22,8 +22,8 @@ $isStaging = ( strpos( $_SERVER['HTTP_HOST'], "-staging" ) !== false ); $stagingURL = $isStaging ? "-staging" : ""; $endpointV = $isStaging ? "dev" : "v3"; -define("LITCAL_API_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/LitCalEngine.php"); -define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/LitCalMetadata.php"); +define("LITCAL_API_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/"); +define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/metadata/"); $litSettings = new LitSettings( $_GET );