MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / joinUrl

Function joinUrl

tools/model-gateway/server.mjs:714–718  ·  view source on GitHub ↗
(base, maybePath)

Source from the content-addressed store, hash-verified

712}
713
714function joinUrl(base, maybePath) {
715 const normalizedBase = base.endsWith('/') ? base.slice(0, -1) : base
716 const normalizedPath = maybePath.startsWith('/') ? maybePath : `/${maybePath}`
717 return `${normalizedBase}${normalizedPath}`
718}
719
720function writeJson(res, statusCode, data) {
721 res.statusCode = statusCode

Callers 4

handleNonStreamFunction · 0.70
handleStreamFunction · 0.70
server.mjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected