import { Request, Response, NextFunction } from "express";
import { AppError } from "../core/AppError";

export const notFound = (
    _req: Request,
    _res: Response,
    next: NextFunction
) => {
    console.error("Route not found URL: " + _req.originalUrl);
    next(new AppError("Route not found", 404));
};