Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
scanHbs.handlebars.logger.level = 0;
res.render('result', result);
}
);
app.use(function (req, res, next) {
next(new errors.NotFoundError({message: 'Page not found'}));
});
// eslint-disable-next-line no-unused-vars
app.use(function (err, req, res, next) {
req.err = err;
res.render('error', {message: err.message, stack: err.stack, details: err.errorDetails, context: err.context});
});
server.start(app);