[+] Completed lab 2
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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());
|
||||
}
|
||||
Reference in New Issue
Block a user