Primera iteración de nuevo diseño
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user