Skip to content

Instantly share code, notes, and snippets.

@gergelyke
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergelyke/05382073290bdcf3c657 to your computer and use it in GitHub Desktop.
Save gergelyke/05382073290bdcf3c657 to your computer and use it in GitHub Desktop.
Register plugin hapi
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({
port: 3000
});
server.register({
register: require('myplugin'),
options: {
message: 'hello'
}
}, function (err) {
if (err) {
throw(err);
}
server.start();
});
@samt
Copy link

samt commented Dec 11, 2014

Missing a colon after register on Line 10

@curiouslychase
Copy link

+1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment