I have below kind of route in my project
router.get('/new', async function(req,res){
});
router.get('/:id', async function (req, res) {
});
when I invoked /new
route from post-man, both the routes are executing. first the route /new
gets executed and then the route with /:id
also getting invoked. I dont knw understand why its getting confused and triggers both routes. Please help. Thanks in advance.