1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× 1× 4× 4× 4× 4× 4× 1× 1× | "use strict";
const Hapi = require('hapi');
const Configue = require('../..');
function World() {
const self = this;
this.server = new Hapi.Server();
this.configue = Configue;
this.register = function (plugin, options, done) {
self.server.register({register: plugin, options: options || {}}, done);
};
}
module.exports = function () {
this.World = World;
}; |