mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-19 15:29:18 +00:00
* BETTERZON-100: Switching session handling to cookies * BETTERZON-100: Some code reformatting * BETTERZON-100: Some more code reformatting
13 lines
254 B
TypeScript
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);
|
|
};
|