log requests to dev server

This commit is contained in:
Bruno Windels 2020-10-05 15:10:15 +02:00
parent 6a8c0b52e0
commit c8fd9d423d

View file

@ -35,6 +35,7 @@ const serve = serveStatic(
// Create server // Create server
const server = http.createServer(function onRequest (req, res) { const server = http.createServer(function onRequest (req, res) {
console.log(req.method, req.url);
serve(req, res, finalhandler(req, res)) serve(req, res, finalhandler(req, res))
}); });