diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/connect/lib/middleware/favicon.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/connect/lib/middleware/favicon.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/connect/lib/middleware/favicon.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/connect/lib/middleware/favicon.js new file mode 100644 index 00000000..847077c7 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/connect/lib/middleware/favicon.js @@ -0,0 +1,34 @@ +/*! + * Connect - favicon + * Copyright(c) 2010 Sencha Inc. + * Copyright(c) 2011 TJ Holowaychuk + * MIT Licensed + */ + +/** + * Module dependencies. + */ + +var path = require('path'); +var serveFavicon = require('serve-favicon'); + +var defaultPath = path.join(__dirname, '..', 'public', 'favicon.ico'); + +/** + * Favicon: + * + * By default serves the connect favicon, or the favicon + * located by the given `path`. + * + * See [serve-favicon](https://github.com/expressjs/serve-favicon) + * + * @param {String|Buffer} path + * @param {Object} options + * @return {Function} + * @api public + */ + +module.exports = function favicon(path, options){ + path = path || defaultPath; + return serveFavicon(path, options); +}; |