MCPcopy Create free account
hub / github.com/alienkitty/space.js / add

Method add

src/utils/Router.js:96–98  ·  view source on GitHub ↗
(path, object, data)

Source from the content-addressed store, hash-verified

94 // Public methods
95
96 static add(path, object, data) {
97 this.routes.set(path, { object, data });
98 }
99
100 static get(path) {
101 let value = this.routes.get(`/${path.replace(this.path, '').split('/')[1]}`);

Callers 15

initViewsMethod · 0.45
initMethod · 0.45
initViewsMethod · 0.45
setTargetNumbersMethod · 0.45
initMethod · 0.45
initMethod · 0.45
initViewsMethod · 0.45
initCanvasMethod · 0.45
initCanvasMethod · 0.45
setDataMethod · 0.45
initMethod · 0.45
addListenersMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected