MCPcopy Index your code
hub / github.com/simstudioai/sim / route.ts

File route.ts

apps/sim/app/api/knowledge/[id]/documents/[documentId]/chunks/route.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createLogger } from '@sim/logger'
2import { authorizeWorkflowByWorkspacePermission } from '@sim/platform-authz/workflow'
3import { getErrorMessage } from '@sim/utils/errors'
4import { type NextRequest, NextResponse } from 'next/server'

Callers

nothing calls this directly

Calls 15

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
generateRequestIdFunction · 0.90
checkDocumentAccessFunction · 0.90
queryChunksFunction · 0.90
checkDocumentWriteAccessFunction · 0.90
createChunkFunction · 0.90
calculateCostFunction · 0.90
getErrorMessageFunction · 0.90
isZodErrorFunction · 0.90

Tested by

no test coverage detected