2016-05-03 22:50:21 +00:00
|
|
|
// Copyright IBM Corp. 2014. All Rights Reserved.
|
|
|
|
// Node module: loopback
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2016-11-15 21:46:23 +00:00
|
|
|
'use strict';
|
2016-05-31 14:50:04 +00:00
|
|
|
var favicon = require('serve-favicon');
|
|
|
|
var path = require('path');
|
|
|
|
|
2014-11-24 23:08:21 +00:00
|
|
|
/**
|
|
|
|
* Serve the LoopBack favicon.
|
|
|
|
* @header loopback.favicon()
|
|
|
|
*/
|
2016-05-31 14:50:04 +00:00
|
|
|
module.exports = function(icon, options) {
|
|
|
|
icon = icon || path.join(__dirname, '../../favicon.ico');
|
|
|
|
return favicon(icon, options);
|
|
|
|
};
|