initialize git, basic setup for crm
This commit is contained in:
5
src/middlewares/global/notFound.js
Normal file
5
src/middlewares/global/notFound.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export function notFound(req, res, next) {
|
||||
res.status(404);
|
||||
const error = new Error(`🔍 Not Found - ${req.originalUrl}`);
|
||||
next(error);
|
||||
}
|
||||
Reference in New Issue
Block a user