@thisisagile/easy-express
Version:
Straightforward library for building domain-driven microservice architectures
10 lines • 302 B
JavaScript
// src/express/NotFoundHandler.ts
import { Exception } from "@thisisagile/easy";
import { toOriginatedError } from "@thisisagile/easy-service";
var notFound = (req, res, next) => {
next(toOriginatedError(Exception.DoesNotExist));
};
export {
notFound
};
//# sourceMappingURL=NotFoundHandler.mjs.map