From 7510c9f018be45e5f4159c0dd9b9c96ad91e3e16 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 20 Jun 2026 15:52:01 -0500 Subject: [PATCH] fix(heartbeat): correct API route from mokosuiteclienthq to mokosuitehq The HQ component is com_mokosuitehq, not com_mokosuiteclienthq. The heartbeat endpoint was returning 404 because the route prefix was wrong. --- .../admin/src/Controller/DisplayController.php | 2 +- .../plg_system_mokosuiteclient/Extension/MokoSuiteClient.php | 2 +- .../src/Extension/Monitor.php | 2 +- source/script.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/packages/com_mokosuiteclient/admin/src/Controller/DisplayController.php b/source/packages/com_mokosuiteclient/admin/src/Controller/DisplayController.php index be6b7714..e9412d77 100644 --- a/source/packages/com_mokosuiteclient/admin/src/Controller/DisplayController.php +++ b/source/packages/com_mokosuiteclient/admin/src/Controller/DisplayController.php @@ -194,7 +194,7 @@ class DisplayController extends BaseController } } - $endpoint = $baseUrl . '/api/index.php/v1/mokosuiteclienthq/heartbeat'; + $endpoint = $baseUrl . '/api/index.php/v1/mokosuitehq/heartbeat'; $ch = curl_init($endpoint); curl_setopt_array($ch, [ diff --git a/source/packages/plg_system_mokosuiteclient/Extension/MokoSuiteClient.php b/source/packages/plg_system_mokosuiteclient/Extension/MokoSuiteClient.php index 2026da95..d1702a2c 100644 --- a/source/packages/plg_system_mokosuiteclient/Extension/MokoSuiteClient.php +++ b/source/packages/plg_system_mokosuiteclient/Extension/MokoSuiteClient.php @@ -2539,7 +2539,7 @@ class MokoSuiteClient extends CMSPlugin implements BootableExtensionInterface $headers[] = 'X-MokoSuiteClient-Timestamp: ' . $timestamp; } - $endpoint = $baseUrl . '/api/index.php/v1/mokosuiteclienthq/heartbeat'; + $endpoint = $baseUrl . '/api/index.php/v1/mokosuitehq/heartbeat'; $json = json_encode($payload, JSON_UNESCAPED_SLASHES); try diff --git a/source/packages/plg_system_mokosuiteclient_monitor/src/Extension/Monitor.php b/source/packages/plg_system_mokosuiteclient_monitor/src/Extension/Monitor.php index 648d373c..9012e4ef 100644 --- a/source/packages/plg_system_mokosuiteclient_monitor/src/Extension/Monitor.php +++ b/source/packages/plg_system_mokosuiteclient_monitor/src/Extension/Monitor.php @@ -191,7 +191,7 @@ class Monitor extends CMSPlugin implements SubscriberInterface $headers[] = 'X-MokoSuiteClient-Timestamp: ' . $timestamp; } - $endpoint = $baseUrl . '/api/index.php/v1/mokosuiteclienthq/heartbeat'; + $endpoint = $baseUrl . '/api/index.php/v1/mokosuitehq/heartbeat'; $json = json_encode($payload, JSON_UNESCAPED_SLASHES); try diff --git a/source/script.php b/source/script.php index 5fa59e4f..d596cca2 100644 --- a/source/script.php +++ b/source/script.php @@ -949,7 +949,7 @@ class Pkg_MokosuiteclientInstallerScript } } - $endpoint = $baseUrl . '/api/index.php/v1/mokosuiteclienthq/heartbeat'; + $endpoint = $baseUrl . '/api/index.php/v1/mokosuitehq/heartbeat'; $ch = curl_init($endpoint); curl_setopt_array($ch, [ -- 2.52.0