lau1944/bunrest

router * not working check page 404

hoanghiep1x0 opened this issue · 1 comments

I set * to match all routers that don't exist but it doesn't work

app.get('*', (req, res) => {
res.status(404).send({ url: ${req.originalUrl} not found });
});

fixed.