UNPKG

express-react-boilerplate

Version:
12 lines (9 loc) 315 B
/* @flow */ import { type Request, type Response, type NextFunction } from 'express'; import { notFoundError } from 'models/result.model'; const notFoundErrorMiddleware = () => async ( req: Request, res: Response, _next: NextFunction, ) => res.json(notFoundError()); export default notFoundErrorMiddleware;