Files
mtusi2026lab2/src/middleware/not-found.ts
T
Антон Архипов f77e500ccf
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / application (pull_request) Canceled after 0s
[+] Completed lab 2
2026-11-16 16:01:24 +03:00

11 lines
243 B
TypeScript

import type { NextFunction, Request, Response } from 'express';
import { notFound } from '../errors/api-error';
export function notFoundHandler(
_req: Request,
_res: Response,
next: NextFunction,
): void {
next(notFound());
}