Unable to pass Implement a Root-Level Request Logger Middleware challenge

When I submit the localhost url, “GET /json - ::1” gets logged. I am fairly certain that my code is correct. Any help will be appreciated. I have tried to submit the replit link as well with the same code but that failed as well.
Below is my code:


let express = require('express');
let app = express();
app.use((req, res, next) =>{
  console.log(req.method + " " + req.path + " - " + req.ip);
  next();
});
console.log("Hello World")
app.use("/public",express.static(__dirname+"/public"));
app.get("/", (req, res) => {
    res.sendFile("/Users/freeman/Desktop/backend/boilerplate-express/views/index.html");
});
app.get('/json',(req,res)=>{
  if(process.env.MESSAGE_STYLE==="uppercase"){
    res.json({
      message:"HELLO JSON"
  })
  }
  else{
    res.json({
      message:"Hello json"
    })
  }
})
module.exports = app;

Your project link(s)

solution: http://localhost:3000/

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Implement a Root-Level Request Logger Middleware

Link to the challenge: