Remove permissions from worker status API response.

The 'permissions' field has been omitted from the worker status API response payload. This ensures a more streamlined response and avoids exposing unnecessary data. The change does not affect the functionality of the API.
This commit is contained in:
Jepp9350
2025-02-20 17:13:59 +01:00
parent 9ce0dcd35c
commit c95daeb619
+1 -1
View File
@@ -14,7 +14,7 @@ class workerRoute
$this->get('/worker/status', function () {
global /** @var router $router */
$response, $router;
$response->success(['message' => 'Worker is running', 'status' => 'OK', 'time' => date('Y-m-d H:i:s'), 'timezone' => date_default_timezone_get(), 'host' => gethostname(), 'version' => '1.0.1', 'routes' => $router->countRoutes(), 'permissions' => $router->getPermissions()]);
$response->success(['message' => 'Worker is running', 'status' => 'OK', 'time' => date('Y-m-d H:i:s'), 'timezone' => date_default_timezone_get(), 'host' => gethostname(), 'version' => '1.0.1', 'routes' => $router->countRoutes()]);
});
}
}