Files
gameno-api/middlewares/notFoundHandler.js
T
kavehhn f04c797be6 Initial commit: teaching institution management API.
Express/MongoDB backend with JWT auth, RBAC, S3 uploads, notifications, and scheduled jobs.
2026-08-09 04:18:08 +02:00

10 lines
250 B
JavaScript

// /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;