mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-06-17 13:15:00 +02:00
20 lines
369 B
JavaScript
20 lines
369 B
JavaScript
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))
|
|
];
|
|
}
|
|
};
|