Skip to content

Instantly share code, notes, and snippets.

@WesTyler
Last active November 2, 2017 18:06
Show Gist options
  • Save WesTyler/88ed33047cb3443ed84b5ce4855ed2fe to your computer and use it in GitHub Desktop.
Save WesTyler/88ed33047cb3443ed84b5ce4855ed2fe to your computer and use it in GitHub Desktop.
const register = async (server, options) => {
// Do your registration stuff
};
const plugin = {
register,
name: 'pluginName',
version: '1.0.1'
};
try {
await server.register(plugin);
}
catch (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