fix: solucion integral de activacion de camara QR con deteccion HTTPS, resilencia iOS/Safari y fallback de foto nativa

This commit is contained in:
unknown
2026-10-04 17:33:16 -06:00
parent 02bf67e0ff
commit f9454dbe09
5 changed files with 412 additions and 54 deletions
+8
View File
@@ -404,6 +404,14 @@ app.post('/api/ordenes/despachar-qr', (req, res) => {
}
});
// Información de conectividad y túnel HTTPS
app.get('/api/server-info', (req, res) => {
res.json({
tunnelUrl: process.env.TUNNEL_URL || 'https://somewhat-ships-looksmart-optical.trycloudflare.com',
httpsAvailable: true
});
});
// Iniciar servidor
app.listen(PORT, () => {
console.log(`🚀 Servidor RecreoPay iniciado en http://localhost:${PORT}`);