I'm trying to use other URL to be used as a data in my app.
For example, If I visit localhost:3000/https://www.google.com/robots.txt
Then I would like to get https://www.google.com/robots.txt
as a parameter so I can use it.
I tried the following approach but it only works if the trailing value has no slash.
app.get('/:id', function (req, res) {
res.send(req.params)
})
Is there a possible way to get the appended URL?