MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / servers

Method servers

packages/core/src/application.ts:233–235  ·  view source on GitHub ↗

* Bind an array of Server constructors to the Application's master * context. * Each server added in this way will automatically be named based on the * class constructor name with the "servers." prefix. * * @remarks * If you wish to control the binding keys for particular server i

(ctors: Constructor<T>[])

Source from the content-addressed store, hash-verified

231 *
232 */
233 public servers<T extends Server>(ctors: Constructor<T>[]): Binding[] {
234 return ctors.map(ctor => this.server(ctor));
235 }
236
237 /**
238 * Retrieve the singleton instance for a bound server.

Callers 2

Calls 1

serverMethod · 0.95

Tested by

no test coverage detected