I have two routes in Express 4.13 app:
router.get('/:id', function (req, res) {
});
router.get('/new', function(req,res){
});
But when I'm trying to access /new
- I get 404, because there is no 'new' object. So how can I change set up that I can access /new route without confusion with /:id route.
Thanks.