I’m at a loss as to why the test won’t recognise my result.
I have the url displaying {“message”:“Hello json”}
The code I wrote is:
app.get('/json', (req, res) => {
res.json({
"message": "Hello json"
})
})
Can someone help me understand what’s going wrong?
Thanks
Project link(s)
solution: https://boilerplate-express-2.mattnk.repl.co/json
Browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Challenge: Serve JSON on a Specific Route
Link to the challenge: