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

Method addLayer

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

Source from the content-addressed store, hash-verified

853 }
854
855 public addLayer(name: LayerEntry['name'], layer: LayerEntry['func']) {
856 this.addHandlerLayer(name, layer);
857 this.addWSLayer(name, layer);
858 }
859
860 public addCaptureRoute(prefix: string, cb: any) {
861 this.captureAllRoutes[prefix] = cb;

Callers 2

constructorMethod · 0.95
applyFunction · 0.80

Calls 2

addHandlerLayerMethod · 0.95
addWSLayerMethod · 0.95

Tested by

no test coverage detected