From 83502090f40322ca5ed3914c535f8a2513e33407 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 21 Jan 2026 08:54:57 -0500 Subject: [PATCH] up --- api/get_chart_data.php | 3 +++ api/get_system_config.php | 9 +++++++++ api/save_system_config.php | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100644 api/get_system_config.php create mode 100644 api/save_system_config.php diff --git a/api/get_chart_data.php b/api/get_chart_data.php index b1fb526..11b231f 100644 --- a/api/get_chart_data.php +++ b/api/get_chart_data.php @@ -6,6 +6,9 @@ require_once '../config/config.php'; +// Requiere autenticación para evitar acceso público +requireAuthentication(); + header('Content-Type: application/json; charset=utf-8'); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET'); diff --git a/api/get_system_config.php b/api/get_system_config.php new file mode 100644 index 0000000..5eebe20 --- /dev/null +++ b/api/get_system_config.php @@ -0,0 +1,9 @@ +