wildduck/plugins/example.js

15 lines
370 B
JavaScript
Raw Normal View History

2017-10-26 19:57:19 +08:00
'use strict';
module.exports.title = 'Example Plugin';
module.exports.init = (app, done) => {
// do your initialization stuff here
// init hook is called immediatelly after server is started
app.addHook('init', async () => {
app.logger.info('Example plugin initialized. Value1=%s', JSON.stringify(app.config));
2017-10-26 19:57:19 +08:00
});
setImmediate(done);
};