MCPcopy Index your code
hub / github.com/simstudioai/sim / makeRequest

Function makeRequest

apps/sim/app/api/table/[tableId]/export-async/route.test.ts:55–62  ·  view source on GitHub ↗
(body: unknown, tableId = 'tbl_1')

Source from the content-addressed store, hash-verified

53}
54
55function makeRequest(body: unknown, tableId = 'tbl_1') {
56 const req = new NextRequest(`http://localhost:3000/api/table/${tableId}/export-async`, {
57 method: 'POST',
58 headers: { 'content-type': 'application/json' },
59 body: JSON.stringify(body),
60 })
61 return POST(req, { params: Promise.resolve({ tableId }) })
62}
63
64const validBody = { workspaceId: 'workspace-1', format: 'csv' }
65

Callers 1

route.test.tsFile · 0.70

Calls 2

POSTFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected