mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
21
node_modules/server/plugins/favicon/index.js
generated
vendored
Normal file
21
node_modules/server/plugins/favicon/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const modern = require('../../src/modern');
|
||||
const favicon = require('serve-favicon');
|
||||
|
||||
module.exports = {
|
||||
name: 'favicon',
|
||||
options: {
|
||||
__root: 'location',
|
||||
location: {
|
||||
type: String,
|
||||
file: true,
|
||||
env: 'FAVICON'
|
||||
}
|
||||
},
|
||||
|
||||
before: [
|
||||
ctx => {
|
||||
if (!ctx.options.favicon.location) return false;
|
||||
return modern(favicon(ctx.options.favicon.location))(ctx);
|
||||
}
|
||||
]
|
||||
};
|
Reference in New Issue
Block a user