Add request logging to debug Amperfy connection issues

This commit is contained in:
2025-12-07 23:04:35 +00:00
parent b7679eb65c
commit a846370325

View File

@@ -24,6 +24,12 @@ const PORT = process.env.PORT || config.port || 3000;
app.use(cors());
app.use(express.json());
// Log all requests for debugging
app.use((req, res, next) => {
console.log(`📥 ${req.method} ${req.url}`);
next();
});
// Initialize database
await initDatabase();