Add request logging to debug Amperfy connection issues
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user