Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ route.ts
File
route.ts
apps/sim/app/api/v1/knowledge/[id]/documents/route.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ AuditAction, AuditResourceType, recordAudit } from
'@sim/audit'
2
import
{
type
NextRequest, NextResponse } from
'next/server'
3
import
{
4
v1ListKnowledgeDocumentsContract,
Callers
nothing calls this directly
Calls
14
withRouteHandler
Function · 0.90
authenticateRequest
Function · 0.90
parseRequest
Function · 0.90
resolveKnowledgeBase
Function · 0.90
getDocuments
Function · 0.90
serializeDate
Function · 0.90
handleError
Function · 0.90
validateFileType
Function · 0.90
checkActorUsageLimits
Function · 0.90
uploadWorkspaceFile
Function · 0.90
createSingleDocument
Function · 0.90
processDocumentsWithQueue
Function · 0.90
Tested by
no test coverage detected