refactor: added notFoundHandler
This commit is contained in:
@@ -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;
|
||||||
Reference in New Issue
Block a user