Betterzon/Backend/src/middleware/notFound.middleware.ts
Patrick cb55cae692
BETTERZON-100: Switching to cookies for session management (#46)
* BETTERZON-100: Switching session handling to cookies

* BETTERZON-100: Some code reformatting

* BETTERZON-100: Some more code reformatting
2021-05-13 18:47:50 +02:00

13 lines
254 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);
};