code: function assetsConfig() {
    return function(req, res, next) {
      //-- assets version
      res.locals.assetsVersion = sails.config.assets.version;
  
      //-- assets base_url
      res.locals.assetsBaseUrl = sails.config.assets.base_url;
  
      next();
    };
  }
docs: ------------------------------------------------------------------------------