Primera iteración de nuevo diseño

This commit is contained in:
Your Name
2025-01-22 16:56:45 -06:00
parent 44e8e3277f
commit 1b1a145478
6 changed files with 231 additions and 173 deletions

View File

@@ -21,11 +21,12 @@ try {
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$data = $db
->where('registro_fecha_ideal', $_GET['registro_fecha_ideal'])
->where('horario_id', $_GET['horario_id'])
->where('profesor_id', $_GET['profesor_id'])
->getOne('auditoria_mat');
// Print the JSON file
echo json_encode($data);
echo json_encode(array_merge($data, ['query' => $db->getLastQuery(), 'get' => $_GET]));
} else {
http_response_code(405);
echo json_encode(['error' => 'method not allowed']);