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) => {