MCPcopy
hub / github.com/hapijs/hapi / registerServer

Method registerServer

lib/core.js:249–257  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

247 }
248
249 registerServer(server) {
250
251 if (!this.root) {
252 this.root = server;
253 this._defaultRoutes();
254 }
255
256 this.instances.add(server);
257 }
258
259 async _start() {
260

Callers 1

constructorMethod · 0.80

Calls 2

_defaultRoutesMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected