Files
wevads-platform/scripts/api_config-manager.php
2026-02-26 04:53:11 +01:00

35 lines
877 B
PHP
Executable File

<?php
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
// API: config-manager.php pour control-hub.html
$action = $_GET['action'] ?? ($_POST['action'] ?? 'status');
$response = ['status' => 'success', 'data' => [], 'message' => ''];
try {
switch($action) {
case 'stats':
$response['data'] = [
'total' => 0,
'active' => 0,
'success_rate' => 0
];
break;
case 'list':
$response['data'] = [];
break;
default:
$response['message'] = 'config-manager API Ready';
}
} catch(Exception $e) {
$response['status'] = 'error';
$response['message'] = $e->getMessage();
error_log("API config-manager error: " . $e->getMessage());
}
echo json_encode($response);
?>