MCPcopy
hub / github.com/simstudioai/sim / shouldReadJsonBody

Function shouldReadJsonBody

apps/sim/lib/api/server/validation.ts:228–230  ·  view source on GitHub ↗
(contract: C)

Source from the content-addressed store, hash-verified

226}
227
228function shouldReadJsonBody<C extends AnyApiRouteContract>(contract: C): boolean {
229 return Boolean(contract.body) && contract.method !== 'GET'
230}
231
232export async function parseRequest<C extends AnyApiRouteContract, TContext>(
233 contract: C,

Callers 1

parseRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected