MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / addServerLayer

Method addServerLayer

framework/framework/server.ts:843–845  ·  view source on GitHub ↗
(name: LayerEntry['name'], func: LayerEntry['func'])

Source from the content-addressed store, hash-verified

841 }
842
843 public addServerLayer(name: LayerEntry['name'], func: LayerEntry['func']) {
844 return this.registerLayer('serverLayers', { name, func });
845 }
846
847 public addHandlerLayer(name: LayerEntry['name'], func: LayerEntry['func']) {
848 return this.registerLayer('handlerLayers', { name, func });

Callers 1

applyFunction · 0.80

Calls 1

registerLayerMethod · 0.95

Tested by

no test coverage detected