mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-24 01:50:07 -04:00
FE: enhance settings tests to verify API persistence of PLUGINS_KEEP_HIST setting
This commit is contained in:
1 parent
206c2e76d0
commit
6dc30bb7dd
3 files changed
+64
-25
No files matched your search
@@ -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;
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user