refactor: added notFoundHandler

This commit is contained in:
Ritesh Ghosh
2023-08-07 14:50:37 +05:30
parent c543ab83fb
commit 96348cd999
+8
View File
@@ -0,0 +1,8 @@
import { RequestHandler } from "express";
import createHttpError from "http-errors";
const notFoundHandler: RequestHandler = (req, res, next) => {
return next(createHttpError.NotFound());
};
export default notFoundHandler;