helpers.js 211 Bytes
const url = require('url');
const config = require('../config/common');
const assetUrl = config.assetUrl;

module.exports = {
    imgSrc: function(imgSrc) {
        return url.resolve(assetUrl, imgSrc);
    }
};