UNPKG

@toki/toki-hapi-bridge

Version:

hapijs plugin for bridging into the toki core runtime

16 lines (12 loc) 338 B
'use strict'; const Server = require('./methods/server'); const Toki = require('toki'); const register = function(hapiServer, options, next) { const server = new Server(hapiServer); const toki = new Toki(server); return next(); }; register.attributes = { pkg: require('./../package.json') }; module.exports = register;