Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function (req, res, next) {
var pub = path.resolve(__dirname, '../../assets');
var treelineStatic = express['static'](pub);
treelineStatic(req, res, function (err) {
if (err) return next(err);
return flatFileMiddleware(req, res, next);
});
};
})(),
www: (function() {
var pub = path.resolve(process.cwd(), '.tmp/public');
var flatFileMiddleware = express['static'](pub);
return function (req, res, next) {
var pub = path.resolve(__dirname, '../../assets');
var treelineStatic = express['static'](pub);
treelineStatic(req, res, function (err) {
if (err) return next(err);
return flatFileMiddleware(req, res, next);
});
};
})(),
}