3 * Copyright(c) 2010 Sencha Inc.
4 * Copyright(c) 2011 TJ Holowaychuk
12 var path = require('path');
13 var serveFavicon = require('serve-favicon');
15 var defaultPath = path.join(__dirname, '..', 'public', 'favicon.ico');
20 * By default serves the connect favicon, or the favicon
21 * located by the given `path`.
23 * See [serve-favicon](https://github.com/expressjs/serve-favicon)
25 * @param {String|Buffer} path
26 * @param {Object} options
31 module.exports = function favicon(path, options){
32 path = path || defaultPath;
33 return serveFavicon(path, options);