MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / jsonPost

Function jsonPost

packages/web/src/features/billing/client.ts:49–53  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

47}
48
49const jsonPost = (body: unknown): RequestInit => ({
50 method: 'POST',
51 headers: { 'Content-Type': 'application/json' },
52 body: JSON.stringify(body),
53});
54
55export const client = {
56 activate: (body: ActivateRequest): Promise<ActivateResponse | ServiceError> => {

Callers 1

client.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected