mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-19 23:39:18 +00:00
13 lines
256 B
TypeScript
13 lines
256 B
TypeScript
import { Request, Response, NextFunction } from "express";
|
|
|
|
export const notFoundHandler = (
|
|
request: Request,
|
|
response: Response,
|
|
next: NextFunction
|
|
) => {
|
|
|
|
const message = "Resource not found";
|
|
|
|
response.status(404).send(message);
|
|
};
|