Last active
November 2, 2017 18:06
-
-
Save WesTyler/88ed33047cb3443ed84b5ce4855ed2fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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