mirror of
https://github.com/directus/directus.git
synced 2026-02-01 01:45:27 -05:00
9 lines
228 B
TypeScript
9 lines
228 B
TypeScript
import { RequestHandler } from 'express';
|
|
import { RouteNotFoundException } from '../exceptions';
|
|
|
|
const notFound: RequestHandler = (req, res, next) => {
|
|
throw new RouteNotFoundException(req.path);
|
|
};
|
|
|
|
export default notFound;
|