Unable to pass the tester here is .env file content located in the root directory MESSAGE_STYLE=uppercase and this is the main part of my code app.get(‘/json’,function(req, res){
if(process.env.MESSAGE_STYLE === “uppercase” )
res.json({“message”: “Hello json”.toUpperCase()});
else
res.json({“message”: “Hello json”});
}) I went through all debugging mentioned in the issues of others as well
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15
Thanks the problem is solved , it was that the link generated by ‘render’ already built upon /json route and the tester was probably trying to get result from link/json resulting in “not found”!