Answer the question
In order to leave comments, you need to log in
Why does console.log(req.params) output favicon.ico?
Hello.
In general, with the help of req.params.id, I find out information from the address bar, but for some reason , favicon.ico
is displayed in my console , maybe someone has come across this garbage and knows what's wrong?
router.get('/:id', async (req, res) => {
console.log(req.params.id);
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question