MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / addIntegration

Function addIntegration

apps/host-selfhost/src/multi-user.test.ts:76–90  ·  view source on GitHub ↗
(token: string, slug: string)

Source from the content-addressed store, hash-verified

74};
75
76const addIntegration = (token: string, slug: string) =>
77 handler(
78 new Request(`${BASE}/api/openapi/specs`, {
79 method: "POST",
80 headers: {
81 authorization: `Bearer ${token}`,
82 "content-type": "application/json",
83 },
84 body: JSON.stringify({
85 spec: { kind: "blob", value: TINY_SPEC },
86 slug,
87 baseUrl: "",
88 }),
89 }),
90 );
91
92const createConnection = (
93 token: string,

Callers 1

multi-user.test.tsFile · 0.85

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected