FE: enhance settings tests to verify API persistence of PLUGINS_KEEP_HIST setting

This commit is contained in:
Jokob @NetAlertX
2026-01-11 03:56:59 +00:00
parent 206c2e76d0
commit 6dc30bb7dd
3 changed files with 64 additions and 25 deletions

View File

@@ -48,7 +48,7 @@ if ($method === 'GET') {
$apiRoot = getenv('NETALERTX_API') ?: '/tmp/api';
$file_path = rtrim($apiRoot, '/') . '/table_devices.json';
$data = file_get_contents($file_path);
$data = file_get_contents($file_path);
// Prepare the data to return as a JSON response
$response_data = base64_encode($data);
@@ -75,7 +75,7 @@ else if ($method === 'POST') {
// // check location
// if (!is_dir($storage_path)) {
// echo "Could not open folder: {$storage_path}";
// write_notification("[Plugin: SYNC] Could not open folder: {$storage_path}", "alert");
// write_notification("[Plugin: SYNC] Could not open folder: {$storage_path}", "alert");
// http_response_code(500);
// exit;
// }