MCPcopy Index your code
hub / github.com/anomalyco/opencode / route

Function route

packages/opencode/src/control-plane/workspace.ts:940–946  ·  view source on GitHub ↗
(url: string | URL, path: string)

Source from the content-addressed store, hash-verified

938}
939
940function route(url: string | URL, path: string) {
941 const next = new URL(url)
942 next.pathname = `${next.pathname.replace(/\/$/, "")}${path}`
943 next.search = ""
944 next.hash = ""
945 return next
946}
947
948export const node = LayerNode.make({
949 service: Service,

Callers 3

workspace.tsFile · 0.70
RunFooterViewFunction · 0.50
cycleTabFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected