// /middlewares/notFoundHandler.js const AppError = require('../utils/AppError'); const notFoundHandler = (req, res, next) => { next(new AppError('NOT_FOUND', { path: req.originalUrl, method: req.method })); }; module.exports = notFoundHandler;