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/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
{ createLogger } from
'@sim/logger'
3
import
{
type
NextRequest, NextResponse } from
'next/server'
4
import
{
Callers
nothing calls this directly
Calls
13
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
generateRequestId
Function · 0.90
getKnowledgeBases
Function · 0.90
parseRequest
Function · 0.90
getConfiguredEmbeddingModel
Function · 0.90
createKnowledgeBase
Function · 0.90
captureServerEvent
Function · 0.90
recordAudit
Function · 0.90
error
Method · 0.80
info
Method · 0.80
warn
Method · 0.65
Tested by
no test coverage detected