this my code
let express = require('express'); let app = express(); app.use(function middleware(req,res,next) { var string = req.method + ’ ’ + req.path + ’ - ’ + req.ip; res.send(string); console.log(string); next(); });
// is not working please i need your help
Please provide a link to the challenge you are working on. Also, please explain what about the challenge has you confused. “is not working” doesn’t give us much to go off of.
Thank you.
this is the link // https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/implement-a-root-level-request-logger-middleware
Those are not valid single quotes.