From 0578d7ed88c5af17d2d00b9ea4410b969fd5c298 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sat, 14 Mar 2026 15:57:32 -0700 Subject: [PATCH] Switch quickTasks and scheduledTasks API refs from .cfm to .php Portal and quick-tasks page now point to PHP API endpoints. Co-Authored-By: Claude Opus 4.6 --- portal/portal.js | 18 +++++++++--------- portal/quick-tasks.html | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/portal/portal.js b/portal/portal.js index d81ee28..7bfe467 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -2960,7 +2960,7 @@ const Portal = { // Quick Task Templates async loadQuickTaskTemplates() { try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/list.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/list.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ BusinessID: this.config.businessId }) @@ -3199,7 +3199,7 @@ const Portal = { if (id) payload.QuickTaskTemplateID = parseInt(id); try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/save.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/save.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) @@ -3223,7 +3223,7 @@ const Portal = { if (!confirm('Delete this quick task?')) return; try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/delete.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/delete.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -3247,7 +3247,7 @@ const Portal = { async createQuickTask(templateId) { try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/create.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/quickTasks/create.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -3271,7 +3271,7 @@ const Portal = { // Scheduled Tasks async loadScheduledTasks() { try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/list.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/list.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ BusinessID: this.config.businessId }) @@ -3764,7 +3764,7 @@ const Portal = { if (id) payload.ScheduledTaskID = parseInt(id); try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/save.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/save.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) @@ -3788,7 +3788,7 @@ const Portal = { if (!confirm('Delete this scheduled task?')) return; try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/delete.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/delete.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -3812,7 +3812,7 @@ const Portal = { async toggleScheduledTask(taskId, isActive) { try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/toggle.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/toggle.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ @@ -3837,7 +3837,7 @@ const Portal = { async runScheduledTaskNow(taskId) { try { - const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/run.cfm`, { + const response = await fetch(`${this.config.apiBaseUrl}/admin/scheduledTasks/run.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ diff --git a/portal/quick-tasks.html b/portal/quick-tasks.html index 5cf9dc5..3895233 100644 --- a/portal/quick-tasks.html +++ b/portal/quick-tasks.html @@ -246,7 +246,7 @@ async loadQuickTasks() { try { - const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/list.cfm`, { + const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/list.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ BusinessID: this.businessId }) @@ -307,7 +307,7 @@ this.addRipple(btn, event); try { - const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/create.cfm`, { + const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/create.php`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({