ts-express-kit
Version:
A TypeScript starter kit for building Express applications with best practices.
16 lines (15 loc) • 572 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const http_status_1 = __importDefault(require("http-status"));
// eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
const notFound = (req, res, next) => {
res.status(http_status_1.default.NOT_FOUND).json({
success: false,
message: 'API route not found',
error: ''
});
};
exports.default = notFound;