Viewing File: /home/ubuntu/efiexchange-node-base/src/shared/infra/http/middlewares/notFoundHandler.ts

import { NextFunction, Request, Response } from 'express'

export async function notFoundHandler(
  request: Request,
  response: Response,
  _: NextFunction,
): Promise<Response> {
  return response.status(404).json({
    message: 'Sorry, we cannot find the route you were looking for.',
  })
}
Back to Directory File Manager