router.get('/:id ', (req, res) => {
res.send(req.params.id);
});
When I call this on exmaple “http://localhost/12” I will get an error called “Cannot Get /12”
Any ideas what I am missing out?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
router.get('/:id ', (req, res) => {
res.send(req.params.id);
});
When I call this on exmaple “http://localhost/12” I will get an error called “Cannot Get /12”
Any ideas what I am missing out?