req.params is undefined but res.params has the value that I want to obtain. This is really weird. I used app.get(‘path’, callback function). For more details, you can check my repl.
The connection to mongodb is on but new url and shortened pairs cannot be seen in mongodb.
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36.