hapi-promise-handler
v1.0.0
Published
Allows you to return a promise from a Hapi handler
Downloads
2
Readme
Usage
var server = new Hapi.Server(...);
require('hapi-promise-handler')(server);
server.route({
method : 'GET',
path : '/',
handler : {
promise : function(request, reply) {
return Promise.resolve();
}
}
});