express-react-boilerplate
Version:
Express react boilerplate
12 lines (9 loc) • 315 B
JavaScript
/* @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;