MCPcopy Create free account
hub / github.com/bridge-codes/bridge / method

Function method

packages/bridge/source/routes/method.ts:35–47  ·  view source on GitHub ↗
(p: {
  GET?: BHGet;
  POST?: BHPost;
  PATCH?: BHPatch;
  PUT?: BHPut;
  DELETE?: BHDelete;
})

Source from the content-addressed store, hash-verified

33 typeof obj === 'object' && obj.isBridgeMethodObject === true;
34
35export const method = <
36 BHGet extends BridgeHandler | null = null,
37 BHPost extends BridgeHandler | null = null,
38 BHPatch extends BridgeHandler | null = null,
39 BHPut extends BridgeHandler | null = null,
40 BHDelete extends BridgeHandler | null = null,
41>(p: {
42 GET?: BHGet;
43 POST?: BHPost;
44 PATCH?: BHPatch;
45 PUT?: BHPut;
46 DELETE?: BHDelete;
47}) => new BridgeMethod(p);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected