mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-14 13:29:17 +08:00
15 lines
373 B
JavaScript
15 lines
373 B
JavaScript
'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', next => {
|
|
app.logger.info('Example plugin initialized. Value1=%s', app.config.value1);
|
|
next();
|
|
});
|
|
|
|
setImmediate(done);
|
|
};
|