MCPcopy
hub / github.com/CodeboxIDE/codebox / setup

Function setup

core/cb.rpc.auth/main.js:5–20  ·  view source on GitHub ↗
(options, imports, register)

Source from the content-addressed store, hash-verified

3
4
5function setup(options, imports, register) {
6 // Import
7 var rpc = imports.rpc;
8 var workspace = imports.workspace;
9 var hooks = imports.hooks;
10
11 var service = new AuthRPCService(workspace, hooks);
12
13 // Register RPC
14 rpc.register('/auth', service, {
15 auth: false
16 });
17
18 // Register
19 register(null, {});
20}
21
22// Exports
23module.exports = setup;

Callers

nothing calls this directly

Calls 1

registerFunction · 0.85

Tested by

no test coverage detected