refactor: creada organización de carpetas, instalado axios, implementado archivo .env con variables de entorno, implementado nuevo método calculateValueFunction en App.jsx

This commit is contained in:
Alexis
2026-03-24 09:57:51 +01:00
parent 351745d50f
commit 532fa9d5d2
14 changed files with 309 additions and 21 deletions
+11
View File
@@ -0,0 +1,11 @@
import axios from '../lib/axios';
export const calculateValueFunction = async (payload) => {
try {
const response = await axios.post('/criteria/doc/value-function', payload);
return response.data;
} catch (error) {
console.error("Error en calculateValueFunction:", error);
throw error;
}
};