diff --git a/server.js b/server.js index 45bab46..7f5323a 100644 --- a/server.js +++ b/server.js @@ -7,6 +7,12 @@ require('dotenv').config(); const app = express(); const port = process.env.SERVER_PORT || 3000; +// add logging for troubleshooting +app.use((req, res, next) => { + console.log(`Incoming request: ${req.method} ${req.url}`); + next(); +}); + // Middleware to parse incoming JSON data from the frontend app.use(express.json());