MCPcopy Create free account
hub / github.com/chieapp/chie / registerAPI

Method registerAPI

src/controller/api-manager.ts:55–60  ·  view source on GitHub ↗
(record: APIRecord)

Source from the content-addressed store, hash-verified

53 }
54
55 registerAPI(record: APIRecord) {
56 if (record.name in this.#apis)
57 throw new Error(`API with name "${record.name}" has already been registered.`);
58 this.#apis[record.name] = record;
59 this.saveConfig();
60 }
61
62 unregisterAPI(name: string) {
63 if (!(name in this.#apis))

Callers 4

beforeAllFunction · 0.80
activateFunction · 0.80
activateFunction · 0.80
activateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected