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/mothership/chats/read/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 } from
'@sim/db/schema'
3
import
{ createLogger } from
'@sim/logger'
4
import
{ and, eq, isNull, lt, or, sql } from
'drizzle-orm'
Callers
nothing calls this directly
Calls
9
createLogger
Function · 0.90
withRouteHandler
Function · 0.90
authenticateCopilotRequestSessionOnly
Function · 0.90
createUnauthorizedResponse
Function · 0.90
parseRequest
Function · 0.90
createInternalServerErrorResponse
Function · 0.90
error
Method · 0.80
set
Method · 0.65
eq
Function · 0.50
Tested by
no test coverage detected