code: function getMime(path) {
            var index = String(path).lastIndexOf(".");
            if (index < 0) {
                return defaultMime;
            }
            var type = exports.mime.types[path.substring(index).toLowerCase()] || defaultMime;
            return (/(text|javascript)/).test(type)
              ? type + "; charset=utf-8"
              : type;
        }
docs: Return mime type for the given path,
  otherwise default to exports.defaultMime
  ("application/octet-stream").
  
  @param {String} path
  @return {String}
  @api public