delete hardcode

This commit is contained in:
2026-02-23 14:43:21 -06:00
parent f3d19962b9
commit 6c7c477d6a
+2 -1
View File
@@ -11,6 +11,7 @@ import { GetStudentWhitoutSancion } from "@/app/lib/getStudentWhitoutSancion";
import axios from "axios";
import "@/app/globals.css";
import { envConfig } from "@/app/lib/config";
export default async function Page(props: {
searchParams?: Promise<{
@@ -41,7 +42,7 @@ export default async function Page(props: {
}
try {
const response = await axios.get("http://localhost:5000/costo");
const response = await axios.get(`${envConfig.apiUrl}/costo`);
costos = response.data;
} catch (error) {
console.error("Error obteniendo costos:", error);