Skip to content

Commit

Permalink
CORRECION en html de pre seguimiento
Browse files Browse the repository at this point in the history
  • Loading branch information
diochos committed Jun 25, 2024
1 parent 90e9c8e commit f232939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const express = require('express');
const app = express();

const port = process.env.PORT || 3000;

const mysql = require('mysql');
const path = require('path');

const port = process.env.PORT || 3000;

const db = mysql.createConnection({
host: 'localhost',
user: 'root',
Expand Down Expand Up @@ -38,8 +37,7 @@ app.get("/seguimiento", (req, res) => {
app.get("/empleadoTest", (req, res) => {
res.sendFile(path.join(__dirname, 'src', 'empleadoTest.html'));
});
/*

app.listen(port, () => {
console.log(`Servidor escuchando en http://localhost:${port}`);
});
*/
2 changes: 1 addition & 1 deletion src/seguimiento-p-r-e.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
var aceptarButtContainer = document.getElementById("aceptarButtContainer");
if (aceptarButtContainer) {
aceptarButtContainer.addEventListener("click", function (e) {
window.location.href = "./views/seguimiento.ejs";
window.location.href = "/seguimiento"; // Ruta de Express
});
}

Expand Down

0 comments on commit f232939

Please sign in to comment.