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

File route.ts

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

Source from the content-addressed store, hash-verified

1import { AuditAction, AuditResourceType, recordAudit } from '@sim/audit'
2import { createLogger } from '@sim/logger'
3import { type NextRequest, NextResponse } from 'next/server'
4import { updateKnowledgeDocumentContract } from '@/lib/api/contracts/knowledge'

Callers

nothing calls this directly

Calls 15

createLoggerFunction · 0.90
withRouteHandlerFunction · 0.90
generateRequestIdFunction · 0.90
checkDocumentAccessFunction · 0.90
checkDocumentWriteAccessFunction · 0.90
parseRequestFunction · 0.90
retryDocumentProcessingFunction · 0.90
updateDocumentFunction · 0.90
recordAuditFunction · 0.90
deleteDocumentFunction · 0.90

Tested by

no test coverage detected