This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/src/config/notFoundHandler.ts
T
2023-08-07 14:50:37 +05:30

9 lines
227 B
TypeScript

import { RequestHandler } from "express";
import createHttpError from "http-errors";
const notFoundHandler: RequestHandler = (req, res, next) => {
return next(createHttpError.NotFound());
};
export default notFoundHandler;