MCPcopy Create free account
hub / github.com/electric-sql/electric / getPathname

Function getPathname

packages/agents-runtime/src/create-handler.ts:758–761  ·  view source on GitHub ↗
(url: string | undefined)

Source from the content-addressed store, hash-verified

756}
757
758function getPathname(url: string | undefined): string | undefined {
759 if (!url) return undefined
760 return new URL(url).pathname
761}
762
763function json(body: Record<string, unknown>, status: number): Response {
764 return new Response(JSON.stringify(body), {

Callers 1

normalizeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected