@toki/toki-hapi-bridge
v0.0.2
Published
hapijs plugin for bridging into the toki core runtime
Downloads
11
Readme
Toki-Hapi-Bridge
Allow the Toki project to be hosted on the hapiJS stack
This is a bridge designed to facilitate using parts of the Toki project on a hapi based server.
Lead Maintainer: Derrick Hinkle
Example
const bridge = require('toki-hapi-bridge');
server = new Hapi.Server();
server.connection({
host: 'localhost',
port: 5000
});
return server.register(bridge);
More examples can be found in the examples document and the full api in the API documentation.