MCPcopy Create free account
hub / github.com/simstudioai/sim / GET

Function GET

apps/sim/app/api/mothership/chat/stream/route.ts:8–15  ·  view source on GitHub ↗
(request: NextRequest)

Source from the content-addressed store, hash-verified

6export { maxDuration }
7
8export function GET(request: NextRequest) {
9 const validation = mothershipChatStreamQuerySchema.safeParse(
10 Object.fromEntries(request.nextUrl.searchParams.entries())
11 )
12 if (!validation.success) return validationErrorResponse(validation.error)
13
14 return copilotStreamGet(request, undefined)
15}

Callers 6

route.test.tsFile · 0.90
route.test.tsFile · 0.90
route.test.tsFile · 0.90
route.test.tsFile · 0.90
route.test.tsFile · 0.90
route.test.tsFile · 0.90

Calls 1

validationErrorResponseFunction · 0.90

Tested by

no test coverage detected