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/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
v1CreateKnowledgeBaseContract,
Callers
nothing calls this directly
Calls
10
withRouteHandler
Function · 0.90
authenticateRequest
Function · 0.90
parseRequest
Function · 0.90
validateWorkspaceAccess
Function · 0.90
getKnowledgeBases
Function · 0.90
handleError
Function · 0.90
createKnowledgeBase
Function · 0.90
getConfiguredEmbeddingModel
Function · 0.90
recordAudit
Function · 0.90
formatKnowledgeBase
Function · 0.90
Tested by
no test coverage detected