MCPcopy Index your code
hub / github.com/simstudioai/sim / getMothershipUrl

Function getMothershipUrl

apps/sim/app/api/admin/mothership/route.ts:20–29  ·  view source on GitHub ↗
(environment: string, userId: string)

Source from the content-addressed store, hash-verified

18}
19
20async function getMothershipUrl(environment: string, userId: string): Promise<string | null> {
21 const parsedEnvironment = mothershipEnvironmentSchema.safeParse(environment)
22 if (!parsedEnvironment.success) return ENV_URLS[environment] ?? null
23
24 return getMothershipBaseURL({
25 userId,
26 environment: parsedEnvironment.data,
27 fallbackUrl: ENV_URLS[environment],
28 })
29}
30
31const ENDPOINT_PATTERN = /^[a-zA-Z0-9_-]+(?:\/[a-zA-Z0-9_-]+)*$/
32

Callers 1

route.tsFile · 0.85

Calls 1

getMothershipBaseURLFunction · 0.90

Tested by

no test coverage detected