From 2e0348e0e7564a53bda866c63a164f5903c44417 Mon Sep 17 00:00:00 2001 From: Hectorgh24 Date: Mon, 19 May 2025 05:43:05 -0600 Subject: [PATCH] rutas --- js/funcionesGraficos.js | 8 ++++---- js/inicio.js | 2 +- js/tarjetasPromedio.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/funcionesGraficos.js b/js/funcionesGraficos.js index 33138c4..203f60a 100644 --- a/js/funcionesGraficos.js +++ b/js/funcionesGraficos.js @@ -1,6 +1,6 @@ async function recuperarCantidadGenero(tipoConsulta) { try { - const response = await fetch("../controllers/graficosController.php", { + const response = await fetch("/controllers/graficosController.php", { method: "POST", headers: { "Content-Type": "application/json", @@ -18,7 +18,7 @@ async function recuperarCantidadGenero(tipoConsulta) { async function recuperarCantidadEdad(tipoConsulta) { try { - const response = await fetch("../controllers/graficosController.php", { + const response = await fetch("/controllers/graficosController.php", { method: "POST", headers: { "Content-Type": "application/json", @@ -36,7 +36,7 @@ async function recuperarCantidadEdad(tipoConsulta) { async function recuperarCantidadEstado(tipoConsulta) { try { - const response = await fetch("../controllers/graficosController.php", { + const response = await fetch("/controllers/graficosController.php", { method: "POST", headers: { "Content-Type": "application/json", @@ -59,7 +59,7 @@ async function recuperarCantidadEstado(tipoConsulta) { async function recuperarCantidadExamen(tipoConsulta) { try { - const response = await fetch("../controllers/graficosController.php", { + const response = await fetch("/controllers/graficosController.php", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/js/inicio.js b/js/inicio.js index 66e60bb..976a28b 100644 --- a/js/inicio.js +++ b/js/inicio.js @@ -163,7 +163,7 @@ allProgress.forEach(item=> { -import { obtenerDatosGeneros, obtenerDatosEdades, obtenerDatosEstados,obtenerDatosExamenes } from '../js/funcionesGraficos.js'; +import { obtenerDatosGeneros, obtenerDatosEdades, obtenerDatosEstados,obtenerDatosExamenes } from './funcionesGraficos.js'; async function inicializarGrafico() { const [femenino, masculino, noDefinido] = await obtenerDatosGeneros(""); diff --git a/js/tarjetasPromedio.js b/js/tarjetasPromedio.js index ff7e93d..002e50c 100644 --- a/js/tarjetasPromedio.js +++ b/js/tarjetasPromedio.js @@ -1,7 +1,7 @@ async function recuperarCantidadGenero(tipoConsulta) { try { - const response = await fetch("../controllers/graficos.php", { + const response = await fetch("../controllers/graficosController.php", { method: "POST", headers: { "Content-Type": "application/json",