import { Request, Response, NextFunction } from 'express';
import { AppError } from '../errors/app-error';

export function notFoundHandler(req: Request, _res: Response, next: NextFunction): void {
  next(new AppError(404, `Route introuvable: ${req.method} ${req.originalUrl}`));
}
