I want to build a search bar like an e-commerce scenario, where when you press a letter,
the URL change. So if I press: "s"
URL = http://localhost:3000/search/s
after 2s i add: "a"
http://localhost:3000/search/sa
So it's a key event. But it is not based on URLSearchParameters. I use express.js,node.js and mongoose. in the route URL
I've written: app.get('/search/:id' but it doesn't work. In the console appear error 404. I use the fetch API btw.