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/workflows/[id]/deployments/[version]/route.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ db, workflowDeploymentVersion } from
'@sim/db'
2
import
{ createLogger } from
'@sim/logger'
3
import
{ and, eq } from
'drizzle-orm'
4
import
type
{ NextRequest } from
'next/server'
Callers
nothing calls this directly
Calls
15
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
generateRequestId
Function · 0.90
validateWorkflowPermissions
Function · 0.90
createErrorResponse
Function · 0.90
getWorkflowDeploymentVersion
Function · 0.90
createSuccessResponse
Function · 0.90
parseRequest
Function · 0.90
getValidationErrorMessage
Function · 0.90
performActivateVersion
Function · 0.90
statusForOrchestrationError
Function · 0.90
captureServerEvent
Function · 0.90
Tested by
no test coverage detected