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 <noreply@anthropic.com>
This commit is contained in:
parent
98163f3842
commit
0578d7ed88
2 changed files with 11 additions and 11 deletions
|
|
@ -2960,7 +2960,7 @@ const Portal = {
|
||||||
// Quick Task Templates
|
// Quick Task Templates
|
||||||
async loadQuickTaskTemplates() {
|
async loadQuickTaskTemplates() {
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ BusinessID: this.config.businessId })
|
body: JSON.stringify({ BusinessID: this.config.businessId })
|
||||||
|
|
@ -3199,7 +3199,7 @@ const Portal = {
|
||||||
if (id) payload.QuickTaskTemplateID = parseInt(id);
|
if (id) payload.QuickTaskTemplateID = parseInt(id);
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(payload)
|
body: JSON.stringify(payload)
|
||||||
|
|
@ -3223,7 +3223,7 @@ const Portal = {
|
||||||
if (!confirm('Delete this quick task?')) return;
|
if (!confirm('Delete this quick task?')) return;
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
@ -3247,7 +3247,7 @@ const Portal = {
|
||||||
|
|
||||||
async createQuickTask(templateId) {
|
async createQuickTask(templateId) {
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
@ -3271,7 +3271,7 @@ const Portal = {
|
||||||
// Scheduled Tasks
|
// Scheduled Tasks
|
||||||
async loadScheduledTasks() {
|
async loadScheduledTasks() {
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ BusinessID: this.config.businessId })
|
body: JSON.stringify({ BusinessID: this.config.businessId })
|
||||||
|
|
@ -3764,7 +3764,7 @@ const Portal = {
|
||||||
if (id) payload.ScheduledTaskID = parseInt(id);
|
if (id) payload.ScheduledTaskID = parseInt(id);
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify(payload)
|
body: JSON.stringify(payload)
|
||||||
|
|
@ -3788,7 +3788,7 @@ const Portal = {
|
||||||
if (!confirm('Delete this scheduled task?')) return;
|
if (!confirm('Delete this scheduled task?')) return;
|
||||||
|
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
@ -3812,7 +3812,7 @@ const Portal = {
|
||||||
|
|
||||||
async toggleScheduledTask(taskId, isActive) {
|
async toggleScheduledTask(taskId, isActive) {
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
@ -3837,7 +3837,7 @@ const Portal = {
|
||||||
|
|
||||||
async runScheduledTaskNow(taskId) {
|
async runScheduledTaskNow(taskId) {
|
||||||
try {
|
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',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
|
|
||||||
async loadQuickTasks() {
|
async loadQuickTasks() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/list.cfm`, {
|
const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/list.php`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ BusinessID: this.businessId })
|
body: JSON.stringify({ BusinessID: this.businessId })
|
||||||
|
|
@ -307,7 +307,7 @@
|
||||||
this.addRipple(btn, event);
|
this.addRipple(btn, event);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/create.cfm`, {
|
const response = await fetch(`${this.apiBaseUrl}/admin/quickTasks/create.php`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
||||||
Reference in a new issue