Skip to content

Instantly share code, notes, and snippets.

@WesTyler
Created November 1, 2017 19:40
Show Gist options
  • Save WesTyler/f3efe3b4814e06a7d119218dbd4edabd to your computer and use it in GitHub Desktop.
Save WesTyler/f3efe3b4814e06a7d119218dbd4edabd to your computer and use it in GitHub Desktop.
const register = (server, options, next) => {
// Do your registration stuff
return next();
};
register.attributes = {
name: 'pluginName',
version: '1.0.1'
};
const plugin = {
register,
once: true,
select: 'admin',
options: {}
};
server.register(plugin, (err) => {
if (err) {
console.log('Deal with your registration error.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment