From 60e75acd9bb94b7ad3e25c0353e92466df715ba9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 Oct 2026 10:21:15 -0600 Subject: [PATCH] feat: landing principal limpia en sibopay.com sin rutas adicionales --- public/index.html | 4 ++-- public/pos.html | 2 +- server/server.js | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 4d69831..29d6544 100644 --- a/public/index.html +++ b/public/index.html @@ -183,7 +183,7 @@
- + 🌐 Ver Presentación Web de SiboPay ↗

@@ -1231,7 +1231,7 @@ Estás en HTTP. Para activar la cámara y pagos QR, tu celular requiere HTTPS:

- + Abrir en HTTPS Seguro diff --git a/public/pos.html b/public/pos.html index 7d1c437..84e411e 100644 --- a/public/pos.html +++ b/public/pos.html @@ -44,7 +44,7 @@ diff --git a/server/server.js b/server/server.js index 6195bc4..0c710b8 100644 --- a/server/server.js +++ b/server/server.js @@ -84,6 +84,22 @@ initDatabase(); app.use(cors()); app.use(express.json({ limit: '25mb' })); app.use(express.urlencoded({ extended: true, limit: '25mb' })); + +// Limpieza de URL: redirige /desktop-preview.html a la raíz limpia / +app.get('/desktop-preview.html', (req, res) => { + res.redirect(301, '/'); +}); + +// Página principal / Landing Page oficial de SiboPay (URL limpia) +app.get('/', (req, res) => { + res.sendFile(path.join(__dirname, '../public/desktop-preview.html')); +}); + +// Alias amigable para la app de estudiantes y padres +app.get('/app', (req, res) => { + res.sendFile(path.join(__dirname, '../public/index.html')); +}); + app.use(express.static(path.join(__dirname, '../public'), { etag: false, setHeaders: (res, filePath) => {