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