11 lines
243 B
TypeScript
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());
|
|
}
|