I use express
framework and react
on front app for manage http request on node app. A have method :
app.get('/api/matches', async (req, res) => {
console.log(req.originalUrl); // /api/matches/
console.log(req.query); // {}
...
when I use url like http://localhost:3000/matches?id=123
I expect to get id
inside req.query
object but instead I get empty {}
object. Also I tried to check how express
see url using originUrl
object, its return without query ?id=123
.