Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/simstudioai/sim
/ route.ts
File
route.ts
apps/sim/app/api/superuser/import-workflow/route.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ db } from
'@sim/db'
2
import
{ copilotChats, workflow, workspace } from
'@sim/db/schema'
3
import
{ createLogger } from
'@sim/logger'
4
import
{ generateId } from
'@sim/utils/id'
Callers
nothing calls this directly
Calls
15
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
verifyEffectiveSuperUser
Function · 0.90
parseRequest
Function · 0.90
loadWorkflowFromNormalizedTables
Function · 0.90
sanitizeForExport
Function · 0.90
parseWorkflowJson
Function · 0.90
generateId
Function · 0.90
deduplicateWorkflowName
Function · 0.90
saveWorkflowToNormalizedTables
Function · 0.90
loadCopilotChatMessages
Function · 0.90
appendCopilotChatMessages
Function · 0.90
Tested by
no test coverage detected