Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
async function eliminarPlantillas(idPlantilla) {
const respuesta = await fetch("http://localhost:3000/plantillas/eliminar", {
method: "POST",
const respuesta = await fetch('http://localhost:3000/plantillas/eliminar', {
method: 'POST',
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
},
body: JSON.stringify({idPlantilla})
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
async function plantillas() {
const respuesta = await fetch("http://localhost:3000/plantillas/consultar", {
method: "GET",
const respuesta = await fetch('http://localhost:3000/plantillas/consultar', {
method: 'GET',
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
async function seleccionarPlantillas(idPlantilla) {
const respuesta = await fetch('http://localhost:3000/plantillas/seleccionar', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({idPlantilla})
});

const datos = await respuesta.json();

return { ok: respuesta.ok, ...datos };
}

module.exports = {
seleccionarPlantillas,
};
1 change: 0 additions & 1 deletion harvester-app/src/framework/utils/css/FrameLayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ body, html {
flex-direction: column;
gap: 25px;
align-items: center; /* Centra horizontalmente */
justify-content: center; /* Centra verticalmente */
}

/* ===== GENERAL ===== */
Expand Down
Loading