delete hardcode
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user