From 14f0662ba0203581ab91b23e4723c1a9a1edd898 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sat, 14 Mar 2026 14:00:43 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20404s:=20revert=20premature=20.cfm=20?= =?UTF-8?q?=E2=86=92=20.php=20endpoint=20rename=20in=20portal/KDS/HUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Another tab doing the PHP migration renamed all API endpoint references from .cfm to .php, but the PHP endpoints aren't deployed yet. Reverted all references back to .cfm so the wizard and portal work again. Co-Authored-By: Claude Opus 4.6 --- portal/setup-wizard.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/portal/setup-wizard.html b/portal/setup-wizard.html index 796c861..7f373e2 100644 --- a/portal/setup-wizard.html +++ b/portal/setup-wizard.html @@ -1401,7 +1401,7 @@ `); try { - const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url }) @@ -1493,8 +1493,8 @@ const formData = new FormData(); formData.append('zipFile', file); - console.log('Uploading ZIP to:', `${config.apiBaseUrl}/setup/uploadSavedPage.php`); - const uploadResponse = await fetch(`${config.apiBaseUrl}/setup/uploadSavedPage.php`, { + console.log('Uploading ZIP to:', `${config.apiBaseUrl}/setup/uploadSavedPage.cfm`); + const uploadResponse = await fetch(`${config.apiBaseUrl}/setup/uploadSavedPage.cfm`, { method: 'POST', body: formData }); @@ -1533,7 +1533,7 @@ `); // Now analyze the extracted URL with Playwright - const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url: uploadResult.URL }) @@ -1549,7 +1549,7 @@ const htmlContent = await file.text(); console.log('Sending HTML content, length:', htmlContent.length); - const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuUrl.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ html: htmlContent }) @@ -1813,7 +1813,7 @@ }); formData.append('businessId', config.businessId); - const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuImages.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/analyzeMenuImages.cfm`, { method: 'POST', body: formData }); @@ -2000,7 +2000,7 @@ // Check for duplicate businesses before creating a new one async function checkForDuplicateBusiness(biz) { try { - const response = await fetch(`${config.apiBaseUrl}/setup/checkDuplicate.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/checkDuplicate.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -2271,7 +2271,7 @@ if (!taxInput) return; try { - const resp = await fetch(`/api/setup/lookupTaxRate.php?zip=${encodeURIComponent(zipCode)}`); + const resp = await fetch(`/api/setup/lookupTaxRate.cfm?zip=${encodeURIComponent(zipCode)}`); const data = await resp.json(); if (data.OK && data.taxRate > 0) { @@ -3182,7 +3182,7 @@ saveBtn.disabled = true; try { - const response = await fetch(`${config.apiBaseUrl}/setup/saveWizard.php`, { + const response = await fetch(`${config.apiBaseUrl}/setup/saveWizard.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -3243,7 +3243,7 @@ formData.append('BusinessID', finalBusinessId); formData.append('header', config.headerImageFile); - const headerResp = await fetch(`${config.apiBaseUrl}/menu/uploadHeader.php`, { + const headerResp = await fetch(`${config.apiBaseUrl}/menu/uploadHeader.cfm`, { method: 'POST', body: formData }); @@ -3292,7 +3292,7 @@ formData.append('ItemID', dbItemId); formData.append('photo', file); - const imgResp = await fetch(`${config.apiBaseUrl}/menu/uploadItemPhoto.php`, { + const imgResp = await fetch(`${config.apiBaseUrl}/menu/uploadItemPhoto.cfm`, { method: 'POST', body: formData }); @@ -3512,7 +3512,7 @@ async function loadBusinessInfo() { try { - const response = await fetch(`${config.apiBaseUrl}/businesses/get.php`, { + const response = await fetch(`${config.apiBaseUrl}/businesses/get.cfm`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ BusinessID: config.businessId })