MCPcopy Create free account
hub / github.com/Effect-TS/effect / prefix

Function prefix

packages/effect/src/unstable/httpapi/HttpApiGroup.ts:318–323  ·  view source on GitHub ↗
(this: Top, prefix: PathInput)

Source from the content-addressed store, hash-verified

316 })
317 },
318 prefix(this: Top, prefix: PathInput) {
319 return makeProto({
320 ...optionsFromGroup(this),
321 endpoints: Record.map(this.endpoints, (endpoint) => endpoint.prefix(prefix))
322 })
323 },
324 middleware(this: Top, middleware: HttpApiMiddleware.AnyService) {
325 return makeProto({
326 ...optionsFromGroup(this),

Callers

nothing calls this directly

Calls 4

optionsFromGroupFunction · 0.85
makeProtoFunction · 0.70
prefixMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected