6 lines
145 B
JavaScript
6 lines
145 B
JavaScript
export function notFound(req, res, next) {
|
|
res.status(404);
|
|
const error = new Error(`🔍 Not Found - ${req.originalUrl}`);
|
|
next(error);
|
|
}
|