helpers.js 211 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 const url = require('url'); const config = require('../config/common'); const assetUrl = config.assetUrl; module.exports = { imgSrc: function(imgSrc) { return url.resolve(assetUrl, imgSrc); } };